summaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-09-06 20:17:40 +0000
committerMark Kettenis <kettenis@gnu.org>2002-09-06 20:17:40 +0000
commit6b9b72e90b246bf281176f723d2831c69bade66c (patch)
tree565837cf2e00413abd4d1fe2fe650ddfa9e097a0 /gdb/blockframe.c
parent6ae1251267b00e641c2e1204927389bc9be8728d (diff)
downloadgdb-6b9b72e90b246bf281176f723d2831c69bade66c.tar.gz
* gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
* gdbarch.h, gdbarch.c: Re-generate. * blockframe.c (find_pc_sect_partial_function): Convert to use SIGTRAMP_START_P predicate.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index b2c5d0eabe9..3ff725b7268 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -816,8 +816,7 @@ find_pc_sect_partial_function (CORE_ADDR pc, asection *section, char **name,
/* If sigtramp is in the u area, it counts as a function (especially
important for step_1). */
-#if defined SIGTRAMP_START
- if (PC_IN_SIGTRAMP (mapped_pc, (char *) NULL))
+ if (SIGTRAMP_START_P () && PC_IN_SIGTRAMP (mapped_pc, (char *) NULL))
{
cache_pc_function_low = SIGTRAMP_START (mapped_pc);
cache_pc_function_high = SIGTRAMP_END (mapped_pc);
@@ -825,7 +824,6 @@ find_pc_sect_partial_function (CORE_ADDR pc, asection *section, char **name,
cache_pc_function_section = section;
goto return_cached_value;
}
-#endif
msymbol = lookup_minimal_symbol_by_pc_section (mapped_pc, section);
pst = find_pc_sect_psymtab (mapped_pc, section);