From e6b47f070d6de8f18b35fa78f169d1107484d08f Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 6 Nov 2001 18:54:11 +0000 Subject: [PATCH] Zap another #ifdef INIT_EXTRA_FRAME_INFO --- gdb/ChangeLog | 5 +++++ gdb/blockframe.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d453520855a..68d8d872284 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-11-06 Andrew Cagney + + * blockframe.c (get_prev_frame): Replace #ifdef + INIT_EXTRA_FRAME_INFO with run-time test. + 2001-11-05 Andrew Cagney * gdbarch.sh (push_return_address): Change to a function with diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 1c6ec2c2d36..78331ce9c0c 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -437,9 +437,8 @@ get_prev_frame (struct frame_info *next_frame) INIT_FRAME_PC_FIRST (fromleaf, prev); -#ifdef INIT_EXTRA_FRAME_INFO - INIT_EXTRA_FRAME_INFO (fromleaf, prev); -#endif + if (INIT_EXTRA_FRAME_INFO_P ()) + INIT_EXTRA_FRAME_INFO (fromleaf, prev); /* This entry is in the frame queue now, which is good since FRAME_SAVED_PC may use that queue to figure out its value -- 2.30.2