* 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.
This commit is contained in:
Andreas Schwab
2005-10-25 11:11:08 +00:00
parent 7c8d43d827
commit 7fb85e4190
5 changed files with 14 additions and 148 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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)
{