This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
ARI fixes for FreeBSD/amd64
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 10 Aug 2003 20:46:52 +0200 (CEST)
- Subject: ARI fixes for FreeBSD/amd64
Checked in on mainline.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
amd64fbsd_sc_reg_offset): Add extern declarations.
* amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
declarations.
Index: x86-64-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.h,v
retrieving revision 1.16
diff -u -p -r1.16 x86-64-tdep.h
--- x86-64-tdep.h 9 Jul 2003 22:10:58 -0000 1.16
+++ x86-64-tdep.h 10 Aug 2003 18:44:34 -0000
@@ -60,5 +60,11 @@ void x86_64_supply_fxsave (char *fxsave)
reserved bits in *FXSAVE. */
void x86_64_fill_fxsave (char *fxsave, int regnum);
+
+
+/* Variables exported from amd64fbsd-tdep.c. */
+extern CORE_ADDR amd64fbsd_sigtramp_start;
+extern CORE_ADDR amd64fbsd_sigtramp_end;
+extern int amd64fbsd_sc_reg_offset[];
#endif /* x86-64-tdep.h */
Index: amd64fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64fbsd-nat.c,v
retrieving revision 1.1
diff -u -p -r1.1 amd64fbsd-nat.c
--- amd64fbsd-nat.c 13 Jul 2003 16:15:59 -0000 1.1
+++ amd64fbsd-nat.c 10 Aug 2003 18:44:34 -0000
@@ -223,7 +223,6 @@ _initialize_am64fbsd_nat (void)
system header files and sysctl(3) to get at the relevant
information. */
- extern int amd64fbsd_sc_reg_offset[];
#define SC_REG_OFFSET amd64fbsd_sc_reg_offset
/* We only check the program counter, stack pointer and frame
@@ -284,9 +283,6 @@ Please report this to <bug-gdb@gnu.org>.
int mib[2];
int ps_strings;
size_t len;
-
- extern CORE_ADDR amd64fbsd_sigtramp_start;
- extern CORE_ADDR amd64fbsd_sigtramp_end;
mib[0] = CTL_KERN;
mib[1] = KERN_PS_STRINGS;