Zap another #ifdef INIT_EXTRA_FRAME_INFO
authorAndrew Cagney <cagney@redhat.com>
Tue, 6 Nov 2001 18:54:11 +0000 (18:54 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 6 Nov 2001 18:54:11 +0000 (18:54 +0000)
gdb/ChangeLog
gdb/blockframe.c

index d453520855a8c015a923b1ee13d3f6b3fbd64cb7..68d8d87228430777c5072878abf5674132b40f08 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-06  Andrew Cagney  <ac131313@redhat.com>
+
+       * blockframe.c (get_prev_frame): Replace #ifdef
+       INIT_EXTRA_FRAME_INFO with run-time test.
+
 2001-11-05  Andrew Cagney  <ac131313@redhat.com>
 
        * gdbarch.sh (push_return_address): Change to a function with
index 1c6ec2c2d360d94787076dd35a66ad582548b756..78331ce9c0c760ab6d1957ac4fec778836f4c6e1 100644 (file)
@@ -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