aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2005-10-25 11:11:08 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2005-10-25 11:11:08 +0000
commit7fb85e41908ab0cbd8b6316da74f753143c9007c (patch)
treec8deabe9a91331eb9927aae1ed519fbee410ef5a /gdb/gdbserver
parent7c8d43d827c95d00671d9348a769faa457d781e3 (diff)
downloadgdb-7fb85e41908ab0cbd8b6316da74f753143c9007c.zip
gdb-7fb85e41908ab0cbd8b6316da74f753143c9007c.tar.gz
gdb-7fb85e41908ab0cbd8b6316da74f753143c9007c.tar.bz2
* 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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog7
-rw-r--r--gdb/gdbserver/linux-ia64-low.c20
-rw-r--r--gdb/gdbserver/server.c3
3 files changed, 10 insertions, 20 deletions
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 <schwab@suse.de>
+
+ * 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 <dan@codesourcery.com>
* 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 <sys/reg.h>
#endif
-#define ia64_num_regs 590
+#define ia64_num_regs 462
#include <asm/ptrace_offsets.h>
@@ -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)
{