aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-08-15 19:00:47 +0000
committerMark Kettenis <kettenis@gnu.org>2002-08-15 19:00:47 +0000
commit047eff6a37344a8936f625f873bce5902c103b56 (patch)
tree94878d2e13fdc7759bc019ec2197bb62c9b86d2f /gdb
parentdcdb1290ca447f9bcd90a694b762716d6bdadb34 (diff)
downloadgdb-047eff6a37344a8936f625f873bce5902c103b56.zip
gdb-047eff6a37344a8936f625f873bce5902c103b56.tar.gz
gdb-047eff6a37344a8936f625f873bce5902c103b56.tar.bz2
* uw-thread.c (SP_ARG0): Define if not already defined.
* config/i386/tm-i386.h (SO_ARG0): Remove define.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/config/i386/tm-i386.h4
-rw-r--r--gdb/uw-thread.c8
3 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d6aa1b9..9895f63 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2002-08-15 Mark Kettenis <kettenis@gnu.org>
+ * uw-thread.c (SP_ARG0): Define if not already defined.
+ * config/i386/tm-i386.h (SO_ARG0): Remove define.
+
* config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
* config/i386/tm-i386.h: Don't include "regcache.h".
diff --git a/gdb/config/i386/tm-i386.h b/gdb/config/i386/tm-i386.h
index bd51532..e80b258 100644
--- a/gdb/config/i386/tm-i386.h
+++ b/gdb/config/i386/tm-i386.h
@@ -28,8 +28,4 @@
extern void print_387_control_word (unsigned int);
extern void print_387_status_word (unsigned int);
-/* Offset from SP to first arg on stack at first instruction of a function */
-
-#define SP_ARG0 (1 * 4)
-
#endif /* ifndef TM_I386_H */
diff --git a/gdb/uw-thread.c b/gdb/uw-thread.c
index 617cfbd..cc6ed6d 100644
--- a/gdb/uw-thread.c
+++ b/gdb/uw-thread.c
@@ -116,6 +116,14 @@
/* Prototypes for supply_gregset etc. */
#include "gregset.h"
+/* Offset from SP to first arg on stack at first instruction of a
+ function. We provide a default here that's right for most, if not
+ all, targets that use this file. */
+
+#ifndef SP_ARG0
+#define SP_ARG0 (1 * 4)
+#endif
+
/* Whether to emit debugging output. */
#define DEBUG 0