From 638f77fbf9a167615565ef567a55588dd8c831ea Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 15 Jun 2002 13:54:22 +0000 Subject: [PATCH] * i386bsd-nat.c: Include "i386-tdep.h". (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with I386_NUM_GREGS. --- gdb/ChangeLog | 4 ++++ gdb/i386bsd-nat.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bf7b444cec..69f9f553e0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2002-06-15 Mark Kettenis + * i386bsd-nat.c: Include "i386-tdep.h". + (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with + I386_NUM_GREGS. + * i386v-nat.c: Remove copnditional inclusion of , and associated comment. They no longer make any sense, since we don't use this file anymore on Linux. diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c index a941d5b468..3ab22a9bab 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)); } -- 2.11.0