*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / sim-regno.h
1 /* Generic remote debugging interface for simulators.
2
3 Copyright (C) 2002, 2007, 2008, 2009, 2010, 2011
4 Free Software Foundation, Inc.
5
6 Contributed by Red Hat, Inc.
7
8 This file is part of GDB.
9
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22
23 #ifndef SIM_REGNO_H
24 #define SIM_REGNO_H
25
26 /* The gdbarch_register_sim_regno (REGNUM) method, when there is a
27 corresponding simulator register, returns that register number as a
28 cardinal. When there is no corresponding register, it returns a
29 negative value. */
30
31 enum sim_regno {
32 /* Normal sane architecture. The simulator is known to not model
33 this register. */
34 SIM_REGNO_DOES_NOT_EXIST = -1,
35 /* For possible backward compatibility. The register cache doesn't
36 have a corresponding name. Skip the register entirely. */
37 LEGACY_SIM_REGNO_IGNORE = -2
38 };
39
40 /* Treat all raw registers as valid. */
41
42 extern int one2one_register_sim_regno (struct gdbarch *gdbarch, int regnum);
43
44 #endif
This page took 0.029548 seconds and 4 git commands to generate.