From: Andrew Cagney Date: Sun, 12 Aug 2001 02:10:18 +0000 (+0000) Subject: * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a15525c16a5143284e86593e2c7ce722c6fdfe60;p=binutils-gdb.git * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete. * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and sp_regnum. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 47fe7842199..2ed8cb09735 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-08-11 Andrew Cagney + + * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete. + * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and + sp_regnum. + 2001-08-11 Andrew Cagney * doublest.c (convert_doublest_to_floatformat): Rename diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h index 39bf55539ba..81cfaab10c9 100644 --- a/gdb/config/mn10300/tm-mn10300.h +++ b/gdb/config/mn10300/tm-mn10300.h @@ -49,8 +49,6 @@ #define A0_REGNUM 4 #define A2_REGNUM 6 #define A3_REGNUM 7 -#define SP_REGNUM 8 -#define PC_REGNUM 9 #define MDR_REGNUM 10 #define PSW_REGNUM 11 #define LIR_REGNUM 12 diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index d62a093aaf7..087f8ef20ea 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -1074,6 +1074,8 @@ mn10300_gdbarch_init (struct gdbarch_info info, set_gdbarch_register_virtual_type (gdbarch, mn10300_register_virtual_type); set_gdbarch_dwarf2_reg_to_regnum (gdbarch, mn10300_dwarf2_reg_to_regnum); set_gdbarch_do_registers_info (gdbarch, mn10300_do_registers_info); + set_gdbarch_sp_regnum (gdbarch, 8); + set_gdbarch_pc_regnum (gdbarch, 9); set_gdbarch_fp_regnum (gdbarch, 31); set_gdbarch_virtual_frame_pointer (gdbarch, mn10300_virtual_frame_pointer);