gdb/regformats/regdef.h - gdb

Data types defined

Macros defined

Source code

  1. /* Register protocol definition structures for the GNU Debugger
  2.    Copyright (C) 2001-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

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

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

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

  14. #ifndef REGDEF_H
  15. #define REGDEF_H

  16. struct reg
  17. {
  18.   /* The name of this register - NULL for pad entries.  */
  19.   const char *name;

  20.   /* At the moment, both of the following bit counts must be divisible
  21.      by eight (to match the representation as two hex digits) and divisible
  22.      by the size of a byte (to match the layout of each register in
  23.      memory).  */

  24.   /* The offset (in bits) of the value of this register in the buffer.  */
  25.   int offset;

  26.   /* The size (in bits) of the value of this register, as transmitted.  */
  27.   int size;
  28. };

  29. /* Set the current remote protocol and register cache according to the array
  30.    ``regs'', with ``n'' elements.  */

  31. void set_register_cache (struct reg *regs, int n);

  32. #endif /* REGDEF_H */