* breakpoint.c (breakpoint_1): Support bp_call_dummy.

This commit is contained in:
Jim Kingdon 1993-09-21 22:55:39 +00:00
parent a0f3541f40
commit bb7b38008e
3 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Tue Sep 21 17:48:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* breakpoint.c (breakpoint_1): Support bp_call_dummy.
Tue Sep 21 17:06:19 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) Tue Sep 21 17:06:19 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* elfread.c (record_minimal_symbol_and_info): Guess the section to * elfread.c (record_minimal_symbol_and_info): Guess the section to

View file

@ -1318,6 +1318,7 @@ bpstat_what (bs)
pops the dummy frame. */ pops the dummy frame. */
bs_class = bp_silent; bs_class = bp_silent;
retval.call_dummy = 1; retval.call_dummy = 1;
break;
} }
current_action = table[(int)bs_class][(int)current_action]; current_action = table[(int)bs_class][(int)current_action];
} }
@ -1354,7 +1355,8 @@ breakpoint_1 (bnum, allflag)
CORE_ADDR last_addr = (CORE_ADDR)-1; CORE_ADDR last_addr = (CORE_ADDR)-1;
int found_a_breakpoint = 0; int found_a_breakpoint = 0;
static char *bptypes[] = {"breakpoint", "until", "finish", "watchpoint", static char *bptypes[] = {"breakpoint", "until", "finish", "watchpoint",
"longjmp", "longjmp resume", "step resume"}; "longjmp", "longjmp resume", "step resume",
"call dummy" };
static char *bpdisps[] = {"del", "dis", "keep"}; static char *bpdisps[] = {"del", "dis", "keep"};
static char bpenables[] = "ny"; static char bpenables[] = "ny";
char wrap_indent[80]; char wrap_indent[80];
@ -1393,6 +1395,7 @@ breakpoint_1 (bnum, allflag)
case bp_longjmp: case bp_longjmp:
case bp_longjmp_resume: case bp_longjmp_resume:
case bp_step_resume: case bp_step_resume:
case bp_call_dummy:
if (addressprint) if (addressprint)
printf_filtered ("%s ", local_hex_string_custom(b->address, "08")); printf_filtered ("%s ", local_hex_string_custom(b->address, "08"));

View file

@ -33,9 +33,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* FIXME In the future, we should fold all other breakpoint-like things into /* FIXME In the future, we should fold all other breakpoint-like things into
here. This includes: here. This includes:
* call-dummy (the breakpoint at the end of a subroutine stub that gdb
uses to call functions in the target) (definately).
* single-step (for machines where we have to simulate single stepping) * single-step (for machines where we have to simulate single stepping)
(probably, though perhaps it is better for it to look as much as (probably, though perhaps it is better for it to look as much as
possible like a single-step to wait_for_inferior). */ possible like a single-step to wait_for_inferior). */