This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Zap another #ifdef INIT_EXTRA_FRAME_INFO
- To: gdb-patches at sources dot redhat dot com
- Subject: [patch] Zap another #ifdef INIT_EXTRA_FRAME_INFO
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 06 Nov 2001 13:55:40 -0500
FYI,
I missed this in the previous patch. If your target isn't multi-arch or
doesn't set INIT_EXTRA_FRAME_INFO() you'll notice problems without it.
Sorry
Andrew
2001-11-06 Andrew Cagney <ac131313@redhat.com>
* blockframe.c (get_prev_frame): Replace #ifdef
INIT_EXTRA_FRAME_INFO with run-time test.
Index: blockframe.c
===================================================================
RCS file: /cvs/src/src/gdb/blockframe.c,v
retrieving revision 1.19
diff -p -r1.19 blockframe.c
*** blockframe.c 2001/11/05 23:11:31 1.19
--- blockframe.c 2001/11/06 18:52:20
*************** get_prev_frame (struct frame_info *next_
*** 437,445 ****
INIT_FRAME_PC_FIRST (fromleaf, prev);
! #ifdef INIT_EXTRA_FRAME_INFO
! INIT_EXTRA_FRAME_INFO (fromleaf, prev);
! #endif
/* This entry is in the frame queue now, which is good since
FRAME_SAVED_PC may use that queue to figure out its value
--- 437,444 ----
INIT_FRAME_PC_FIRST (fromleaf, prev);
! 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