aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-04-19 11:39:48 +0000
committerMark Kettenis <kettenis@gnu.org>2001-04-19 11:39:48 +0000
commit539ffe0b42135dbf2714c3bb836aad493c7081a3 (patch)
tree524f736053a0df22f73c3a5f91f8eddcb41d2dbb /gdb/i386-tdep.c
parent653165cc0d1803bb11bfef2288778c85ac32bbe7 (diff)
downloadgdb-539ffe0b42135dbf2714c3bb836aad493c7081a3.zip
gdb-539ffe0b42135dbf2714c3bb836aad493c7081a3.tar.gz
gdb-539ffe0b42135dbf2714c3bb836aad493c7081a3.tar.bz2
* i386-tdep.c (i386_frameless_function_invocation): New function.
* config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine in terms of i386_frameless_function_invocation. Adjust comment. (i386_frameless_function_invocation): New prototype.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 15b261c..7477266 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -365,6 +365,19 @@ i386_frame_chain (struct frame_info *frame)
return 0;
}
+/* Determine whether the function invocation represented by FRAME does
+ not have a from on the stack associated with it. If it does not,
+ return non-zero, otherwise return zero. */
+
+int
+i386_frameless_function_invocation (struct frame_info *frame)
+{
+ if (frame->signal_handler_caller)
+ return 0;
+
+ return frameless_look_for_prologue (frame);
+}
+
/* Immediately after a function call, return the saved pc. */
CORE_ADDR