aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-11-05 23:11:31 +0000
committerAndrew Cagney <cagney@redhat.com>2001-11-05 23:11:31 +0000
commit5fdff4261c7ed2a7c14c2e72cb6981e853af2803 (patch)
treeedddf127a9f330bf999f65b5d19c66c87f399cab /gdb/blockframe.c
parent0a2a5e0f3c3ac5b6f635e33a4a804d5c1083f33b (diff)
downloadgdb-5fdff4261c7ed2a7c14c2e72cb6981e853af2803.zip
gdb-5fdff4261c7ed2a7c14c2e72cb6981e853af2803.tar.gz
gdb-5fdff4261c7ed2a7c14c2e72cb6981e853af2803.tar.bz2
Change INIT_EXTRA_FRAME_INFO() to a function with predicate.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index c88649e..1c6ec2c 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -227,9 +227,8 @@ create_new_frame (CORE_ADDR addr, CORE_ADDR pc)
find_pc_partial_function (pc, &name, (CORE_ADDR *) NULL, (CORE_ADDR *) NULL);
fi->signal_handler_caller = IN_SIGTRAMP (fi->pc, name);
-#ifdef INIT_EXTRA_FRAME_INFO
- INIT_EXTRA_FRAME_INFO (0, fi);
-#endif
+ if (INIT_EXTRA_FRAME_INFO_P ())
+ INIT_EXTRA_FRAME_INFO (0, fi);
return fi;
}