diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-06-15 13:54:22 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-06-15 13:54:22 +0000 |
commit | 638f77fbf9a167615565ef567a55588dd8c831ea (patch) | |
tree | 086a9fe5a59f54ee26110c4a4f24461fd3480161 /gdb/i386bsd-nat.c | |
parent | 9b9961855d0a890624d441c8030588182d36529c (diff) | |
download | gdb-638f77fbf9a167615565ef567a55588dd8c831ea.tar.gz |
* 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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c index a941d5b468c..3ab22a9bab8 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)); } |