diff options
Diffstat (limited to 'gdb/h8300-tdep.c')
-rw-r--r-- | gdb/h8300-tdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 20f26cc4ca9..2b194a33460 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -441,13 +441,11 @@ print_register_hook (regno) if (regno == 8) { /* CCR register */ - int C, Z, N, V; - unsigned char b[2]; + unsigned char b[4]; unsigned char l; - read_relative_register_raw_bytes (regno, b); - l = b[1]; + l = b[REGISTER_VIRTUAL_SIZE(8) -1]; printf_unfiltered ("\t"); printf_unfiltered ("I-%d - ", (l & 0x80) != 0); printf_unfiltered ("H-%d - ", (l & 0x20) != 0); |