diff options
Diffstat (limited to 'gdb/remote-e7000.c')
-rw-r--r-- | gdb/remote-e7000.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote-e7000.c b/gdb/remote-e7000.c index 49909b104b1..49c7fb99ae8 100644 --- a/gdb/remote-e7000.c +++ b/gdb/remote-e7000.c @@ -1,7 +1,7 @@ /* Remote debugging interface for Hitachi E7000 ICE, for GDB Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002 Free Software Foundation, Inc. + 2002, 2003 Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -785,7 +785,7 @@ void fetch_regs_from_dump (int (*nextchar) (), char *want) { int regno; - char buf[MAX_REGISTER_RAW_SIZE]; + char *buf = alloca (max_register_size (current_gdbarch)); int thischar = nextchar (); @@ -1812,7 +1812,7 @@ e7000_drain_command (char *args, int fromtty) puts_e7000debug ("end\r"); putchar_e7000 (CTRLC); - while ((c = readchar (1) != -1)) + while ((c = readchar (1)) != -1) { if (quit_flag) { |