aboutsummaryrefslogtreecommitdiff
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
commit43156d82f174844fcb1cd554a7a068867ce755da (patch)
tree6b681baf95d476ca093cf17d4e6fccc92dcffb29 /gdb/blockframe.c
parente4512afa79ecdd0ef17f8871676df09f49015eda (diff)
downloadgdb-43156d82f174844fcb1cd554a7a068867ce755da.zip
gdb-43156d82f174844fcb1cd554a7a068867ce755da.tar.gz
gdb-43156d82f174844fcb1cd554a7a068867ce755da.tar.bz2
* 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 b2c5d0e..3ff725b 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);