aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-12-30 20:34:06 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-12-30 20:34:06 +0000
commit05052b638ca28ec04bc39a383869aeab442e59f1 (patch)
treecab43a567dc3be0a4117dafc184a8d2be289920a /gdb/stack.c
parentda6b2d99f7b95caf5f31a31e28a310e0b63b2ee5 (diff)
downloadgdb-05052b638ca28ec04bc39a383869aeab442e59f1.zip
gdb-05052b638ca28ec04bc39a383869aeab442e59f1.tar.gz
gdb-05052b638ca28ec04bc39a383869aeab442e59f1.tar.bz2
* breakpoint.c (breakpoint_chain): Make static.
* breakpoint.c, breakpoint.h (frame_in_dummy): New function. * stack.c (print_frame_info): Use it.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 2f2a104..2112053 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -185,6 +185,9 @@ print_frame_info (fi, level, source, args)
char buf[MAX_REGISTER_RAW_SIZE];
CORE_ADDR sp;
+#if 0
+ /* On the 68k, this spends too much time in m68k_find_saved_regs. */
+
/* Get the value of SP_REGNUM relative to the frame. */
get_saved_register (buf, (int *)NULL, (CORE_ADDR *)NULL,
FRAME_INFO_ID (fi), SP_REGNUM, (enum lval_type *)NULL);
@@ -195,6 +198,9 @@ print_frame_info (fi, level, source, args)
will succeed even though there is no call dummy. Probably best is
to check for a bp_call_dummy breakpoint. */
if (PC_IN_CALL_DUMMY (fi->pc, sp, fi->frame))
+#else
+ if (frame_in_dummy (fi))
+#endif
{
/* Do this regardless of SOURCE because we don't have any source
to list for this frame. */
@@ -280,7 +286,7 @@ print_frame_info (fi, level, source, args)
if (fi->pc != sal.pc || !sal.symtab)
printf_filtered ("%s in ", local_hex_string((unsigned long) fi->pc));
fprintf_symbol_filtered (gdb_stdout, funname ? funname : "??", funlang,
- DMGL_NO_OPTS);
+ DMGL_ANSI);
wrap_here (" ");
fputs_filtered (" (", gdb_stdout);
if (args)