diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-04-15 03:36:02 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-04-15 03:36:02 +0000 |
commit | df2a1bd7d97c3c4f32785349807e3316d9d0aabb (patch) | |
tree | 9f668a9df8c57ab27280c4d85eceb8cb117ce7d9 /gdb | |
parent | fa99ebe19f7df3b2d8e074e48d8ee213bb598d1a (diff) | |
download | gdb-df2a1bd7d97c3c4f32785349807e3316d9d0aabb.zip gdb-df2a1bd7d97c3c4f32785349807e3316d9d0aabb.tar.gz gdb-df2a1bd7d97c3c4f32785349807e3316d9d0aabb.tar.bz2 |
* stack.c (print_frame_info): Print specially if dummy frame.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/stack.c | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bbb0081..0f611b1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ Wed Apr 14 17:12:51 1993 Jim Kingdon (kingdon@cygnus.com) + * stack.c (print_frame_info): Print specially if dummy frame. + * breakpoint.c: Add comments regarding within_scope future direction. * Version 4.8.3. diff --git a/gdb/stack.c b/gdb/stack.c index 31d7b28..b5f965e 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -29,6 +29,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "target.h" #include "breakpoint.h" #include "demangle.h" +#include "inferior.h" static void return_command PARAMS ((char *, int)); @@ -142,9 +143,15 @@ print_frame_info (fi, level, source, args) enum language funlang = language_unknown; int numargs; -#ifdef CORE_NEEDS_RELOCATION - CORE_NEEDS_RELOCATION(fi->pc); -#endif + if (PC_IN_CALL_DUMMY (fi->pc, read_register (SP_REGNUM), fi->frame)) + { + /* Do this regardless of SOURCE because we don't have any source + to list for this frame. */ + if (level >= 0) + printf_filtered ("#%-2d ", level); + printf_filtered ("<function called from gdb>\n"); + return; + } sal = find_pc_line (fi->pc, fi->next_frame); func = find_pc_function (fi->pc); |