diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-07 20:29:56 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-07 20:29:56 +0000 |
commit | 23a8e2915cfa83f8cac60e61e1b414a7aeab198e (patch) | |
tree | 5ebb4da63b33de2d086d84e2cea8479d650a5ff7 /gdb/stack.c | |
parent | e154ecf4ab067beccde639b61a166eb9ebc7c0c3 (diff) | |
download | gdb-23a8e2915cfa83f8cac60e61e1b414a7aeab198e.zip gdb-23a8e2915cfa83f8cac60e61e1b414a7aeab198e.tar.gz gdb-23a8e2915cfa83f8cac60e61e1b414a7aeab198e.tar.bz2 |
* frame.h, blockframe.c, stack.c, a29k-tdep.c,
config/gould/tmp-{pn,np1}.h,
config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
next_frame from struct frame_info. It has no purpose beyond
->next->frame and is an artifact from GDB 2.8.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 0e00586..a0c2d36 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -162,7 +162,7 @@ print_frame_info (fi, level, source, args) enum language funlang = language_unknown; int numargs; - if (PC_IN_CALL_DUMMY (fi->pc, read_register (SP_REGNUM), fi->frame)) + if (PC_IN_CALL_DUMMY (fi->pc, read_sp (), fi->frame)) { /* Do this regardless of SOURCE because we don't have any source to list for this frame. */ @@ -181,7 +181,7 @@ print_frame_info (fi, level, source, args) return; } - sal = find_pc_line (fi->pc, fi->next_frame); + sal = find_pc_line (fi->pc, fi->next); func = find_pc_function (fi->pc); if (func) { @@ -245,7 +245,7 @@ print_frame_info (fi, level, source, args) struct print_args_args args; args.fi = fi; args.func = func; - catch_errors (print_args_stub, (char *)&args, ""); + catch_errors (print_args_stub, (char *)&args, "", RETURN_MASK_ERROR); } printf_filtered (")"); if (sal.symtab && sal.symtab->filename) @@ -417,7 +417,7 @@ frame_info (addr_exp, from_tty) error ("Invalid frame specified."); fi = get_frame_info (frame); - sal = find_pc_line (fi->pc, fi->next_frame); + sal = find_pc_line (fi->pc, fi->next); func = get_frame_function (frame); s = find_pc_symtab(fi->pc); if (func) @@ -475,12 +475,13 @@ frame_info (addr_exp, from_tty) if (calling_frame) printf_filtered (" called by frame at %s", local_hex_string(FRAME_FP (calling_frame))); - if (fi->next_frame && calling_frame) + if (fi->next && calling_frame) puts_filtered (","); wrap_here (" "); - if (fi->next_frame) - printf_filtered (" caller of frame at %s", local_hex_string(fi->next_frame)); - if (fi->next_frame || calling_frame) + if (fi->next) + printf_filtered (" caller of frame at %s", + local_hex_string (fi->next->frame)); + if (fi->next || calling_frame) puts_filtered ("\n"); if (s) printf_filtered(" source language %s.\n", language_str(s->language)); |