This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Some tweaks for i386bsd-nat.c
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 15 Jun 2002 15:54:25 +0200 (CEST)
- Subject: [PATCH] Some tweaks for i386bsd-nat.c
Committed.
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386bsd-nat.c: Include "i386-tdep.h".
(supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
I386_NUM_GREGS.
Index: i386bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-nat.c,v
retrieving revision 1.13
diff -u -p -r1.13 i386bsd-nat.c
--- i386bsd-nat.c 14 Jun 2002 19:42:19 -0000 1.13
+++ i386bsd-nat.c 15 Jun 2002 13:50:29 -0000
@@ -43,6 +43,7 @@ typedef struct fpreg fpregset_t;
#endif
#include "gregset.h"
+#include "i386-tdep.h"
/* In older BSD versions we cannot get at some of the segment
@@ -125,7 +126,7 @@ supply_gregset (gregset_t *gregsetp)
{
int i;
- for (i = 0; i < NUM_GREGS; i++)
+ for (i = 0; i < I386_NUM_GREGS; i++)
{
if (CANNOT_FETCH_REGISTER (i))
supply_register (i, NULL);
@@ -143,7 +144,7 @@ fill_gregset (gregset_t *gregsetp, int r
{
int i;
- for (i = 0; i < NUM_GREGS; i++)
+ for (i = 0; i < I386_NUM_GREGS; i++)
if ((regno == -1 || regno == i) && ! CANNOT_STORE_REGISTER (i))
regcache_collect (i, REG_ADDR (gregsetp, i));
}