From: Andrew Cagney Date: Mon, 22 Mar 2004 01:43:32 +0000 (+0000) Subject: 2004-03-21 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=244675f99af964096502f9dfa58fee5676c4c8d5;p=binutils-gdb.git 2004-03-21 Andrew Cagney * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete declaration and out-of-date comment. * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point): Delete function. * mn10300-tdep.c (mn10300_gdbarch_init): Do not set deprecated_pc_in_call_dummy. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 16e852a05ce..5ea55d83066 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2004-03-21 Andrew Cagney + * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete + declaration and out-of-date comment. + * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point): + Delete function. + * mn10300-tdep.c (mn10300_gdbarch_init): Do not set + deprecated_pc_in_call_dummy. + * infrun.c (handle_inferior_event): For non legacy frames, use the frame ID and frame type to identify a signal trampoline. Update comments. diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 1e965550546..1ff46857aea 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -585,14 +585,6 @@ deprecated_pc_in_call_dummy_on_stack (CORE_ADDR pc, CORE_ADDR sp, && INNER_THAN ((pc), (frame_address))); } -int -deprecated_pc_in_call_dummy_at_entry_point (CORE_ADDR pc, CORE_ADDR sp, - CORE_ADDR frame_address) -{ - CORE_ADDR addr = entry_point_address (); - return ((pc) >= addr && (pc) <= (addr + DECR_PC_AFTER_BREAK)); -} - /* Returns true for a user frame or a call_function_by_hand dummy frame, and false for the CRT0 start-up frame. Purpose is to terminate backtrace. */ diff --git a/gdb/inferior.h b/gdb/inferior.h index b36dcd45b1d..115ffe1e3d8 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -463,15 +463,6 @@ extern int deprecated_pc_in_call_dummy_on_stack (CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR frame_address); -/* NOTE: cagney/2002-11-24: Targets need to both switch to generic - dummy frames, and use generic_pc_in_call_dummy(). The generic - version should be able to handle all cases since that code works by - saving the address of the dummy's breakpoint (where ever it is). */ - -extern int deprecated_pc_in_call_dummy_at_entry_point (CORE_ADDR pc, - CORE_ADDR sp, - CORE_ADDR frame_address); - /* If STARTUP_WITH_SHELL is set, GDB's "run" will attempts to start up the debugee under a shell. This is in order for argument-expansion to occur. E.g., diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index 998ee689738..21f506947ed 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -1185,7 +1185,6 @@ mn10300_gdbarch_init (struct gdbarch_info info, /* Calling functions in the inferior from GDB. */ set_gdbarch_deprecated_call_dummy_words (gdbarch, mn10300_call_dummy_words); set_gdbarch_deprecated_sizeof_call_dummy_words (gdbarch, sizeof (mn10300_call_dummy_words)); - set_gdbarch_deprecated_pc_in_call_dummy (gdbarch, deprecated_pc_in_call_dummy_at_entry_point); set_gdbarch_deprecated_push_arguments (gdbarch, mn10300_push_arguments); set_gdbarch_deprecated_reg_struct_has_addr (gdbarch, mn10300_reg_struct_has_addr);