From 05052b638ca28ec04bc39a383869aeab442e59f1 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 30 Dec 1993 20:34:06 +0000 Subject: * breakpoint.c (breakpoint_chain): Make static. * breakpoint.c, breakpoint.h (frame_in_dummy): New function. * stack.c (print_frame_info): Use it. --- gdb/stack.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb/stack.c') 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) -- cgit v1.1