gdb/gdbserver/lynx-low.h - gdb

Data types defined

Source code

  1. /* Copyright (C) 2010-2015 Free Software Foundation, Inc.

  2.    This file is part of GDB.

  3.    This program is free software; you can redistribute it and/or modify
  4.    it under the terms of the GNU General Public License as published by
  5.    the Free Software Foundation; either version 3 of the License, or
  6.    (at your option) any later version.

  7.    This program is distributed in the hope that it will be useful,
  8.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.    GNU General Public License for more details.

  11.    You should have received a copy of the GNU General Public License
  12.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  13. struct regcache;
  14. struct target_desc;

  15. /*  Some information relative to a given register set.   */

  16. struct lynx_regset_info
  17. {
  18.   /* The ptrace request needed to get/set registers of this set.  */
  19.   int get_request, set_request;
  20.   /* The size of the register set.  */
  21.   int size;
  22.   /* Fill the buffer BUF from the contents of the given REGCACHE.  */
  23.   void (*fill_function) (struct regcache *regcache, char *buf);
  24.   /* Store the register value in BUF in the given REGCACHE.  */
  25.   void (*store_function) (struct regcache *regcache, const char *buf);
  26. };

  27. /* A list of regsets for the target being debugged, terminated by an entry
  28.    where the size is negative.

  29.    This list should be created by the target-specific code.  */

  30. extern struct lynx_regset_info lynx_target_regsets[];

  31. /* The target-specific operations for LynxOS support.  */

  32. struct lynx_target_ops
  33. {
  34.   /* Architecture-specific setup.  */
  35.   void (*arch_setup) (void);
  36. };

  37. extern struct lynx_target_ops the_low_target;

  38. /* The inferior's target description.  This is a global because the
  39.    LynxOS ports support neither bi-arch nor multi-process.  */
  40. extern const struct target_desc *lynx_tdesc;