aboutsummaryrefslogtreecommitdiff
path: root/gdb/h8300-tdep.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-12-12 00:00:53 +0000
committerSteve Chamberlain <sac@cygnus>1993-12-12 00:00:53 +0000
commit08c0d7b84f411aed680b0777b43266171f11c552 (patch)
tree16232d5ba59d4bb15a4d0c61daa34406ad3e0994 /gdb/h8300-tdep.c
parentfcf276c4958f7cc906ec389f003aa2a713c98528 (diff)
downloadfsf-binutils-gdb-08c0d7b84f411aed680b0777b43266171f11c552.zip
fsf-binutils-gdb-08c0d7b84f411aed680b0777b43266171f11c552.tar.gz
fsf-binutils-gdb-08c0d7b84f411aed680b0777b43266171f11c552.tar.bz2
* ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
(go32_readchar): Special handling for faster polling. (async structure): Volatile. * h8300-tdep.c (print_register_hook): Allocate and use the right number bytes for the raw register. * h8500-tdep.c (regoff, frame_find_saved_reg, examine_prologue): deleted. (h8500_register_size, h8500_register_virtual_type, ): Use new way of counting registers. * remote-e7000.c (echo_index): deleted. (expect): Better handling of user interrupts. (expect_prompt): Remove never used log file support. (want, want_nopc): Add support for H8/300H. (fetch_regs_from_dump): Treat \r and \n as whitespace. (e7000_drain): Send an "end" command before waiting for output to stop. (e7000_wait): Cope with H8/300H, better handling of user interrupts. (why_stop, expect_n, sub2_from_pc): New function. * remote-utils.c (gr_load_image): call fflush and QUIT more regularly. * utils.c (notice_quit): New function for polling for user interrupts.
Diffstat (limited to 'gdb/h8300-tdep.c')
-rw-r--r--gdb/h8300-tdep.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index 20f26cc..2b194a3 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);