From: Jim Kingdon Date: Thu, 8 Jul 1993 19:32:03 +0000 (+0000) Subject: Revision to this change--use ->next != NULL, not just ->next, when X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73553c44e77f5d5a6f4a8349a2fd3aa5960a6ebc;p=binutils-gdb.git Revision to this change--use ->next != NULL, not just ->next, when passing an integer argument to find_pc_line. * 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. --- diff --git a/gdb/stack.c b/gdb/stack.c index a0c2d3613ec..1ad91c2e741 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -181,7 +181,7 @@ print_frame_info (fi, level, source, args) return; } - sal = find_pc_line (fi->pc, fi->next); + sal = find_pc_line (fi->pc, fi->next != NULL); func = find_pc_function (fi->pc); if (func) { @@ -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); + sal = find_pc_line (fi->pc, fi->next != NULL); func = get_frame_function (frame); s = find_pc_symtab(fi->pc); if (func)