aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-04-10 21:33:55 +0000
committerAndrew Cagney <cagney@redhat.com>2003-04-10 21:33:55 +0000
commit28aa72da4ce487bb98d2004bf36f7dbcef6ecc89 (patch)
treeb1c3032c23eb7c3288334c5fb8d7c796a3c0542c /gdb/arch-utils.c
parentf46a289cb18f363f41a4bef398dff60eb615a744 (diff)
downloadbinutils-cagney_frameaddr-20030403-branch.zip
binutils-cagney_frameaddr-20030403-branch.tar.gz
binutils-cagney_frameaddr-20030403-branch.tar.bz2
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 712b03e..cba0175 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -383,7 +383,7 @@ init_frame_pc_noop (int fromleaf, struct frame_info *prev)
CORE_ADDR
init_frame_pc_default (int fromleaf, struct frame_info *prev)
{
- if (fromleaf)
+ if (fromleaf && SAVED_PC_AFTER_CALL_P ())
return SAVED_PC_AFTER_CALL (get_next_frame (prev));
else if (get_next_frame (prev) != NULL)
return DEPRECATED_FRAME_SAVED_PC (get_next_frame (prev));