diff options
author | Andrey Volkov <avolkov@transas.com> | 2002-05-17 18:44:13 +0000 |
---|---|---|
committer | Andrey Volkov <avolkov@transas.com> | 2002-05-17 18:44:13 +0000 |
commit | 6e591d68a54bb93589704e8b9994a161b7a9fb31 (patch) | |
tree | c6086988e204755e7a678bcb20c3986ae4d8dd72 /gdb | |
parent | e0e9281e471adb9bf226b0372f4330dad1277ebc (diff) | |
download | fsf-binutils-gdb-6e591d68a54bb93589704e8b9994a161b7a9fb31.zip fsf-binutils-gdb-6e591d68a54bb93589704e8b9994a161b7a9fb31.tar.gz fsf-binutils-gdb-6e591d68a54bb93589704e8b9994a161b7a9fb31.tar.bz2 |
* Change literal regno in h8300-tdep.c
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/h8300-tdep.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4a95e0..80df40d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-05-17 Andrey Volkov <avolkov@transas.com> + + * h8300-tdep.c: Change literal regnums to REGNO. + 2002-05-17 Jim Blandy <jimb@redhat.com> * NEWS: Note addition of macro support. diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 93b9bbb..7d79fcc 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -829,14 +829,14 @@ _initialize_h8300m (void) void h8300_print_register_hook (int regno) { - if (regno == 8) + if (regno == CCR_REGNUM) { /* CCR register */ int C, Z, N, V; - unsigned char b[4]; + unsigned char b[REGISTER_SIZE]; unsigned char l; frame_register_read (selected_frame, regno, b); - l = b[REGISTER_VIRTUAL_SIZE (8) - 1]; + l = b[REGISTER_VIRTUAL_SIZE (CCR_REGNUM) - 1]; printf_unfiltered ("\t"); printf_unfiltered ("I-%d - ", (l & 0x80) != 0); printf_unfiltered ("H-%d - ", (l & 0x20) != 0); |