GDB (API)
/home/stan/gdb/src/gdb/regformats/regdef.h
Go to the documentation of this file.
00001 /* Register protocol definition structures for the GNU Debugger
00002    Copyright (C) 2001-2013 Free Software Foundation, Inc.
00003 
00004    This file is part of GDB.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 3 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00018 
00019 #ifndef REGDEF_H
00020 #define REGDEF_H
00021 
00022 struct reg
00023 {
00024   /* The name of this register - NULL for pad entries.  */
00025   const char *name;
00026 
00027   /* At the moment, both of the following bit counts must be divisible
00028      by eight (to match the representation as two hex digits) and divisible
00029      by the size of a byte (to match the layout of each register in
00030      memory).  */
00031 
00032   /* The offset (in bits) of the value of this register in the buffer.  */
00033   int offset;
00034 
00035   /* The size (in bits) of the value of this register, as transmitted.  */
00036   int size;
00037 };
00038 
00039 /* Set the current remote protocol and register cache according to the array
00040    ``regs'', with ``n'' elements.  */
00041 
00042 void set_register_cache (struct reg *regs, int n);
00043 
00044 #endif /* REGDEF_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines