diff options
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 3eb81c1..b9b2290 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -334,7 +334,8 @@ typedef int (gdbarch_sdb_reg_to_regnum_ftype) (struct gdbarch *gdbarch, int sdb_ extern int gdbarch_sdb_reg_to_regnum (struct gdbarch *gdbarch, int sdb_regnr); extern void set_gdbarch_sdb_reg_to_regnum (struct gdbarch *gdbarch, gdbarch_sdb_reg_to_regnum_ftype *sdb_reg_to_regnum); -/* Provide a default mapping from a DWARF2 register number to a gdb REGNUM. */ +/* Provide a default mapping from a DWARF2 register number to a gdb REGNUM. + Return -1 for bad REGNUM. Note: Several targets get this wrong. */ typedef int (gdbarch_dwarf2_reg_to_regnum_ftype) (struct gdbarch *gdbarch, int dwarf2_regnr); extern int gdbarch_dwarf2_reg_to_regnum (struct gdbarch *gdbarch, int dwarf2_regnr); |