diff options
author | Michael Snyder <msnyder@vmware.com> | 2003-06-19 03:18:49 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2003-06-19 03:18:49 +0000 |
commit | 7be04a682f4b6dfc571123ab1692543221ab3c87 (patch) | |
tree | 78b416c458f268dc62e9a6701874a745fd30085f /gdb/h8300-tdep.c | |
parent | 50649e423e2355dffbc8ec243cfd9d343f571ce1 (diff) | |
download | gdb-7be04a682f4b6dfc571123ab1692543221ab3c87.zip gdb-7be04a682f4b6dfc571123ab1692543221ab3c87.tar.gz gdb-7be04a682f4b6dfc571123ab1692543221ab3c87.tar.bz2 |
2003-06-18 Corinna Vinschen <vinschen@redhat.com>
* h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
registers for H8/300S.
(h8300_print_registers_info): Ditto.
(h8300_gdbarch_init): Accommodate register count for H8/300S.
Diffstat (limited to 'gdb/h8300-tdep.c')
-rw-r--r-- | gdb/h8300-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 24dca63..1253b4d 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -895,7 +895,7 @@ h8300s_register_name (int regno) static char *register_names[] = { "er0", "er1", "er2", "er3", "er4", "er5", "er6", "sp", "", "pc", "cycles", "", "tick", "inst", - /* "mach", "macl", */ + "mach", "macl", "ccr", "exr" /* pseudo registers */ }; if (regno < 0 @@ -1015,9 +1015,9 @@ h8300_print_registers_info (struct gdbarch *gdbarch, struct ui_file *file, { h8300_print_register (gdbarch, file, frame, E_SBR_REGNUM); h8300_print_register (gdbarch, file, frame, E_VBR_REGNUM); - h8300_print_register (gdbarch, file, frame, E_MACH_REGNUM); - h8300_print_register (gdbarch, file, frame, E_MACL_REGNUM); } + h8300_print_register (gdbarch, file, frame, E_MACH_REGNUM); + h8300_print_register (gdbarch, file, frame, E_MACL_REGNUM); h8300_print_register (gdbarch, file, frame, E_CYCLES_REGNUM); h8300_print_register (gdbarch, file, frame, E_TICKS_REGNUM); h8300_print_register (gdbarch, file, frame, E_INSTS_REGNUM); @@ -1220,7 +1220,7 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) h8300sxmode = 0; h8300smode = 1; h8300hmode = 1; - set_gdbarch_num_regs (gdbarch, 14); + set_gdbarch_num_regs (gdbarch, 16); set_gdbarch_num_pseudo_regs (gdbarch, 2); set_gdbarch_ecoff_reg_to_regnum (gdbarch, h8300s_dbg_reg_to_regnum); set_gdbarch_dwarf_reg_to_regnum (gdbarch, h8300s_dbg_reg_to_regnum); |