aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386bsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-06-15 13:54:22 +0000
committerMark Kettenis <kettenis@gnu.org>2002-06-15 13:54:22 +0000
commit57976e88bbafe10f03ca4845b5c7189f5f0d5262 (patch)
tree4ce65f5ddb4f2f3c77405de34e938eca503bda9d /gdb/i386bsd-nat.c
parentb335f4a6cdc92da1e787688fa854e23e6a78e409 (diff)
downloadfsf-binutils-gdb-57976e88bbafe10f03ca4845b5c7189f5f0d5262.zip
fsf-binutils-gdb-57976e88bbafe10f03ca4845b5c7189f5f0d5262.tar.gz
fsf-binutils-gdb-57976e88bbafe10f03ca4845b5c7189f5f0d5262.tar.bz2
* i386bsd-nat.c: Include "i386-tdep.h".
(supply_gregset, fill_gregset): Replace usage of NUM_GREGS with I386_NUM_GREGS.
Diffstat (limited to 'gdb/i386bsd-nat.c')
-rw-r--r--gdb/i386bsd-nat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c
index a941d5b..3ab22a9 100644
--- a/gdb/i386bsd-nat.c
+++ b/gdb/i386bsd-nat.c
@@ -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 regno)
{
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));
}