GDB (xrefs)

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