From 0d17c81d95377cc552092f5f92dc9221d562ef77 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 9 May 2001 16:16:33 +0000 Subject: * i386-tdep.c (i386_frame_saved_pc): New function. * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of i386_frame_saved_pc. (i386_frame_saved_pc): New prototype. --- gdb/config/i386/tm-i386.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'gdb/config/i386') diff --git a/gdb/config/i386/tm-i386.h b/gdb/config/i386/tm-i386.h index a59ed82..9248f18 100644 --- a/gdb/config/i386/tm-i386.h +++ b/gdb/config/i386/tm-i386.h @@ -330,15 +330,10 @@ extern CORE_ADDR i386_frame_chain (struct frame_info *frame); i386_frameless_function_invocation (frame) extern int i386_frameless_function_invocation (struct frame_info *frame); -/* Saved Pc. Get it from sigcontext if within sigtramp. */ +/* Return the saved program counter for FRAME. */ -#define FRAME_SAVED_PC(FRAME) \ - (((FRAME)->signal_handler_caller \ - ? sigtramp_saved_pc (FRAME) \ - : read_memory_unsigned_integer ((FRAME)->frame + 4, 4)) \ - ) - -extern CORE_ADDR sigtramp_saved_pc (struct frame_info *); +#define FRAME_SAVED_PC(frame) i386_frame_saved_pc (frame) +extern CORE_ADDR i386_frame_saved_pc (struct frame_info *frame); #define FRAME_ARGS_ADDRESS(fi) ((fi)->frame) -- cgit v1.1