15796c8dcSSimon Schubert /* Register protocol definition structures for the GNU Debugger 2*ef5ccd6cSJohn Marino Copyright (C) 2001-2013 Free Software Foundation, Inc. 35796c8dcSSimon Schubert 45796c8dcSSimon Schubert This file is part of GDB. 55796c8dcSSimon Schubert 65796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 75796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 85796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 95796c8dcSSimon Schubert (at your option) any later version. 105796c8dcSSimon Schubert 115796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 125796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 135796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 145796c8dcSSimon Schubert GNU General Public License for more details. 155796c8dcSSimon Schubert 165796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 175796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 185796c8dcSSimon Schubert 195796c8dcSSimon Schubert #ifndef REGDEF_H 205796c8dcSSimon Schubert #define REGDEF_H 215796c8dcSSimon Schubert 225796c8dcSSimon Schubert struct reg 235796c8dcSSimon Schubert { 245796c8dcSSimon Schubert /* The name of this register - NULL for pad entries. */ 255796c8dcSSimon Schubert const char *name; 265796c8dcSSimon Schubert 275796c8dcSSimon Schubert /* At the moment, both of the following bit counts must be divisible 285796c8dcSSimon Schubert by eight (to match the representation as two hex digits) and divisible 295796c8dcSSimon Schubert by the size of a byte (to match the layout of each register in 305796c8dcSSimon Schubert memory). */ 315796c8dcSSimon Schubert 325796c8dcSSimon Schubert /* The offset (in bits) of the value of this register in the buffer. */ 335796c8dcSSimon Schubert int offset; 345796c8dcSSimon Schubert 355796c8dcSSimon Schubert /* The size (in bits) of the value of this register, as transmitted. */ 365796c8dcSSimon Schubert int size; 375796c8dcSSimon Schubert }; 385796c8dcSSimon Schubert 395796c8dcSSimon Schubert /* Set the current remote protocol and register cache according to the array 405796c8dcSSimon Schubert ``regs'', with ``n'' elements. */ 415796c8dcSSimon Schubert 425796c8dcSSimon Schubert void set_register_cache (struct reg *regs, int n); 435796c8dcSSimon Schubert 445796c8dcSSimon Schubert #endif /* REGDEF_H */ 45