From 7fb85e41908ab0cbd8b6316da74f753143c9007c Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 25 Oct 2005 11:11:08 +0000 Subject: * regformats/reg-ia64.dat: Remove NAT registers. gdbserver: * server.c (main): Allocate mem_buf with PBUFSIZ bytes. * linux-ia64-low.c (ia64_regmap): Remove NAT registers. (ia64_num_regs): Reduce to 462. --- gdb/gdbserver/ChangeLog | 7 +++++++ gdb/gdbserver/linux-ia64-low.c | 20 +------------------- gdb/gdbserver/server.c | 3 ++- 3 files changed, 10 insertions(+), 20 deletions(-) (limited to 'gdb/gdbserver') diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 65cca45..bdf99ae 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,10 @@ +2005-10-25 Andreas Schwab + + * server.c (main): Allocate mem_buf with PBUFSIZ bytes. + + * linux-ia64-low.c (ia64_regmap): Remove NAT registers. + (ia64_num_regs): Reduce to 462. + 2005-09-17 Daniel Jacobowitz * acinclude.m4: Correct quoting. diff --git a/gdb/gdbserver/linux-ia64-low.c b/gdb/gdbserver/linux-ia64-low.c index 9407e6c..4a32e99 100644 --- a/gdb/gdbserver/linux-ia64-low.c +++ b/gdb/gdbserver/linux-ia64-low.c @@ -26,7 +26,7 @@ #include #endif -#define ia64_num_regs 590 +#define ia64_num_regs 462 #include @@ -263,24 +263,6 @@ static int ia64_regmap[] = -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - /* nat bits - not fetched directly; instead we obtain these bits from - either rnat or unat or from memory. */ - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, }; static int diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index dfefe2b..cde6d4f 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -322,7 +322,7 @@ int main (int argc, char *argv[]) { char ch, status, *own_buf; - unsigned char mem_buf[2000]; + unsigned char *mem_buf; int i = 0; int signal; unsigned int len; @@ -359,6 +359,7 @@ main (int argc, char *argv[]) initialize_low (); own_buf = malloc (PBUFSIZ); + mem_buf = malloc (PBUFSIZ); if (pid == 0) { -- cgit v1.1