diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-02 09:36:57 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-02 09:36:57 +0000 |
commit | 03863182248f30818d11417609a7e576fefe705b (patch) | |
tree | 527f6a6a9029f14d94119ada4dea5e53e25dc323 /gdb/gdbarch.h | |
parent | d7446e7568e7d6f5c49ed29f9184c94f09956a82 (diff) | |
download | fsf-binutils-gdb-03863182248f30818d11417609a7e576fefe705b.zip fsf-binutils-gdb-03863182248f30818d11417609a7e576fefe705b.tar.gz fsf-binutils-gdb-03863182248f30818d11417609a7e576fefe705b.tar.bz2 |
Multi-arch NPC_REGNUM NNPC_REGNUM.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index b142732..7ccad0a 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -263,6 +263,32 @@ extern void set_gdbarch_pc_regnum (struct gdbarch *gdbarch, int pc_regnum); #endif #endif +/* Default (value) for non- multi-arch platforms. */ +#if (GDB_MULTI_ARCH == 0) && !defined (NPC_REGNUM) +#define NPC_REGNUM (-1) +#endif + +extern int gdbarch_npc_regnum (struct gdbarch *gdbarch); +extern void set_gdbarch_npc_regnum (struct gdbarch *gdbarch, int npc_regnum); +#if GDB_MULTI_ARCH +#if (GDB_MULTI_ARCH > 1) || !defined (NPC_REGNUM) +#define NPC_REGNUM (gdbarch_npc_regnum (current_gdbarch)) +#endif +#endif + +/* Default (value) for non- multi-arch platforms. */ +#if (GDB_MULTI_ARCH == 0) && !defined (NNPC_REGNUM) +#define NNPC_REGNUM (-1) +#endif + +extern int gdbarch_nnpc_regnum (struct gdbarch *gdbarch); +extern void set_gdbarch_nnpc_regnum (struct gdbarch *gdbarch, int nnpc_regnum); +#if GDB_MULTI_ARCH +#if (GDB_MULTI_ARCH > 1) || !defined (NNPC_REGNUM) +#define NNPC_REGNUM (gdbarch_nnpc_regnum (current_gdbarch)) +#endif +#endif + /* Default (function) for non- multi-arch platforms. */ #if (GDB_MULTI_ARCH == 0) && !defined (REGISTER_NAME) #define REGISTER_NAME(regnr) (legacy_register_name (regnr)) |