This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Delete a DEPRECATED_SGTRAMP_START reference
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 30 Apr 2004 17:04:58 -0400
- Subject: [commit] Delete a DEPRECATED_SGTRAMP_START reference
Hello,
This trims some more dead wood by removing one of the few remaining
DEPRECATED_SGTRAMP_START (from blockframe's symtabl lookup code). As
the comment notes:
- /* NOTE: cagney/2004-03-16: Determining if the PC is in a signal
- trampoline typically depends on the detailed analysis of dynamic
- information obtained from the inferior yet this function is
- expected to work using static information obtained from the
- symbol table. */
- if (DEPRECATED_SIGTRAMP_START_P ()
Almost no architectures define it, and stack.c handles sigtramp frame
names in a different way anyway.
committed,
Andrew
2004-04-30 Andrew Cagney <cagney@redhat.com>
* blockframe.c (find_pc_partial_function): Delete use of
DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
DEPRECATED_SIGTRAMP_END.
Index: blockframe.c
===================================================================
RCS file: /cvs/src/src/gdb/blockframe.c,v
retrieving revision 1.96
diff -p -u -r1.96 blockframe.c
--- blockframe.c 23 Mar 2004 15:16:39 -0000 1.96
+++ blockframe.c 30 Apr 2004 20:56:57 -0000
@@ -380,23 +380,6 @@ find_pc_partial_function (CORE_ADDR pc,
&& section == cache_pc_function_section)
goto return_cached_value;
- /* If sigtramp is in the u area, it counts as a function (especially
- important for step_1). */
- /* NOTE: cagney/2004-03-16: Determining if the PC is in a signal
- trampoline typically depends on the detailed analysis of dynamic
- information obtained from the inferior yet this function is
- expected to work using static information obtained from the
- symbol table. */
- if (DEPRECATED_SIGTRAMP_START_P ()
- && DEPRECATED_PC_IN_SIGTRAMP (mapped_pc, (char *) NULL))
- {
- cache_pc_function_low = DEPRECATED_SIGTRAMP_START (mapped_pc);
- cache_pc_function_high = DEPRECATED_SIGTRAMP_END (mapped_pc);
- cache_pc_function_name = "<sigtramp>";
- cache_pc_function_section = section;
- goto return_cached_value;
- }
-
msymbol = lookup_minimal_symbol_by_pc_section (mapped_pc, section);
pst = find_pc_sect_psymtab (mapped_pc, section);
if (pst)