aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-11-28 22:53:04 +0000
committerAndrew Cagney <cagney@redhat.com>1998-11-28 22:53:04 +0000
commit3a0c96a9966a85f4205558490e1281471c34980f (patch)
tree6b5b199df7937536be9ad316fe4283f851d64cc5 /gdb/blockframe.c
parent02331869322178ead208b8328caab67c5a77b6b3 (diff)
downloadgdb-3a0c96a9966a85f4205558490e1281471c34980f.zip
gdb-3a0c96a9966a85f4205558490e1281471c34980f.tar.gz
gdb-3a0c96a9966a85f4205558490e1281471c34980f.tar.bz2
CARP:
Rewrite INNER_THAN so that it takes parameters.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 9e042de..3cb00c8 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -31,6 +31,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "inferior.h" /* for read_pc */
#include "annotate.h"
+/* Prototypes for exported functions. */
+
+void _initialize_blockframe PARAMS ((void));
+
/* Is ADDR inside the startup file? Note that if your machine
has a way to detect the bottom of the stack, there is no need
to call this function from FRAME_CHAIN_VALID; the reason for
@@ -1049,7 +1053,7 @@ generic_push_dummy_frame ()
dummy_frame = dummy_frame_stack;
while (dummy_frame)
- if (dummy_frame->fp INNER_THAN fp) /* stale -- destroy! */
+ if (INNER_THAN (dummy_frame->fp, fp)) /* stale -- destroy! */
{
dummy_frame_stack = dummy_frame->next;
free (dummy_frame);
@@ -1114,7 +1118,7 @@ generic_frame_chain_valid (fp, fi)
return 1; /* don't prune CALL_DUMMY frames */
else /* fall back to default algorithm (see frame.h) */
return (fp != 0
- && (fi->frame INNER_THAN fp || fi->frame == fp)
+ && (INNER_THAN (fi->frame, fp) || fi->frame == fp)
&& !inside_entry_file (FRAME_SAVED_PC(fi)));
}