aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-12-09 00:32:08 +0000
committerAndrew Cagney <cagney@redhat.com>2002-12-09 00:32:08 +0000
commit75e3c1f98d4e0b3d89560b5981ade71c246b504b (patch)
tree97546595050844383dab1b4312e7f0d7530a23e7 /gdb/stack.c
parent559747269fed22d80ee96ad0a6e3fa606bf257b8 (diff)
downloadgdb-75e3c1f98d4e0b3d89560b5981ade71c246b504b.zip
gdb-75e3c1f98d4e0b3d89560b5981ade71c246b504b.tar.gz
gdb-75e3c1f98d4e0b3d89560b5981ade71c246b504b.tar.bz2
2002-12-08 Andrew Cagney <ac131313@redhat.com>
* stack.c (frame_info): Use get_prev_frame. * blockframe.c (frame_address_in_block): Ditto. * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto. (rs6000_frameless_function_invocation): Ditto. (rs6000_frame_saved_pc): Ditto. (rs6000_frame_chain): Ditto. * arch-utils.c (init_frame_pc_default): Ditto.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 76cd4a5..d1dbd4e 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -837,15 +837,15 @@ frame_info (char *addr_exp, int from_tty)
printf_filtered (" called by frame at ");
print_address_numeric (calling_frame_info->frame, 1, gdb_stdout);
}
- if (fi->next && calling_frame_info)
+ if (get_next_frame (fi) && calling_frame_info)
puts_filtered (",");
wrap_here (" ");
- if (fi->next)
+ if (get_next_frame (fi))
{
printf_filtered (" caller of frame at ");
- print_address_numeric (fi->next->frame, 1, gdb_stdout);
+ print_address_numeric (get_next_frame (fi)->frame, 1, gdb_stdout);
}
- if (fi->next || calling_frame_info)
+ if (get_next_frame (fi) || calling_frame_info)
puts_filtered ("\n");
if (s)
printf_filtered (" source language %s.\n",