diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-12-19 23:20:45 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-12-19 23:20:45 +0000 |
commit | e30839fee3fa2b2ae067e6d85fa9ba41be09fc22 (patch) | |
tree | 2e8c5f4272967521969d5aae6e8e368578cbba8c | |
parent | a8c548cb0c04dfbe117d2b268aaa1ae6714adbef (diff) | |
download | gdb-e30839fee3fa2b2ae067e6d85fa9ba41be09fc22.zip gdb-e30839fee3fa2b2ae067e6d85fa9ba41be09fc22.tar.gz gdb-e30839fee3fa2b2ae067e6d85fa9ba41be09fc22.tar.bz2 |
2000-12-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_print_register): Don't leave regnum 0 out of the
non-pseudo-regs group.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sh-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d5a2818..15877d6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2000-12-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com> + * sh-tdep.c (sh_print_register): Don't leave regnum 0 out of the + non-pseudo-regs group. + +2000-12-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com> + * sh-tdep.c (sh_gdbarch_init): Move setting of breakpoint_from_pc to before switch statement. diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index f8681b2..f83ad7e 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1747,7 +1747,7 @@ sh_print_register (int regnum) if (regnum < 0 || regnum >= NUM_REGS + NUM_PSEUDO_REGS) internal_error ("Invalid register number %d\n", regnum); - else if (regnum > 0 && regnum < NUM_REGS) + else if (regnum >= 0 && regnum < NUM_REGS) { if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (regnum)) == TYPE_CODE_FLT) sh_do_fp_register (regnum); /* FP regs */ |