aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-08-18 21:53:55 +0000
committerMark Kettenis <kettenis@gnu.org>2002-08-18 21:53:55 +0000
commitd4e0bab44f5ebceb27ba9c277eb464ab51f5894c (patch)
tree6ac95764ac7267df4f0fed8d18bc2ecb92c8b5c3 /gdb/config
parent46cac009b73a4d0194cf7c1b0c664ca21dcb4842 (diff)
downloadgdb-d4e0bab44f5ebceb27ba9c277eb464ab51f5894c.zip
gdb-d4e0bab44f5ebceb27ba9c277eb464ab51f5894c.tar.gz
gdb-d4e0bab44f5ebceb27ba9c277eb464ab51f5894c.tar.bz2
* config/i386/nm-i386v.h: Add protection against
multiple-inclusion. (i386_register_u_addr): Remove prototype. (register_u_addr): New prototype. (REGISTER_U_ADDR): Redefine accordingly. * i386v-nat.c: Improve several comments. (i386_register_u_addr): Change signature and rename to register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of ubase variable.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/i386/nm-i386v.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/gdb/config/i386/nm-i386v.h b/gdb/config/i386/nm-i386v.h
index af19115..61af25d 100644
--- a/gdb/config/i386/nm-i386v.h
+++ b/gdb/config/i386/nm-i386v.h
@@ -1,5 +1,6 @@
-/* Native support for i386.
- Copyright 1986, 1987, 1989, 1992, 1993, 1998, 2000
+/* Native support for i386 running System V (pre-SVR4).
+
+ Copyright 1986, 1987, 1989, 1992, 1993, 1998, 2000, 2002
Free Software Foundation, Inc.
Changes for 80386 by Pace Willisson (pace@prep.ai.mit.edu), July 1988.
@@ -20,7 +21,16 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define REGISTER_U_ADDR(addr, blockend, regno) \
- (addr) = i386_register_u_addr ((blockend),(regno));
+#ifndef NM_I386V_H
+#define NM_I386V_H
+
+/* Support for the user struct. */
+
+/* This is the amount to subtract from u.u_ar0
+ to get the offset in the core file of the register values. */
+
+#define REGISTER_U_ADDR(addr, blockend, regnum) \
+ (addr) = register_u_addr ((blockend), (regnum))
+extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regnum);
-extern int i386_register_u_addr (int, int);
+#endif /* nm-i386v.h */