summaryrefslogtreecommitdiffstats
path: root/contrib/gdb/gdb/uw-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gdb/gdb/uw-thread.c')
-rwxr-xr-xcontrib/gdb/gdb/uw-thread.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/gdb/gdb/uw-thread.c b/contrib/gdb/gdb/uw-thread.c
index 617cfbd..cc6ed6d 100755
--- a/contrib/gdb/gdb/uw-thread.c
+++ b/contrib/gdb/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
OpenPOWER on IntegriCloud