diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-11 05:41:04 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-11 05:41:04 +0000 |
commit | 29c6dce249736bbb48998f65804c5ced2d8a1762 (patch) | |
tree | 8a527dd6eeb83ce7f52607ce4133a7e7ff8f14ec /gdb/infrun.c | |
parent | fe6750385724b6c284c2dbb5af73f5d6868794e0 (diff) | |
download | gdb-29c6dce249736bbb48998f65804c5ced2d8a1762.zip gdb-29c6dce249736bbb48998f65804c5ced2d8a1762.tar.gz gdb-29c6dce249736bbb48998f65804c5ced2d8a1762.tar.bz2 |
* infrun.c: Remove step_resume_{duplicate,shadow}. Replace
step_resume_break_address with step_resume_breakpoint (now local
to wait_for_inferior).
({insert,remove}_step_breakpoint): Remove.
(wait_for_inferior): Set step resume break with
set_momentary_breakpoint. Test hitting it with bpstat_stop_status
and bpstat_what (stop_step_resume_break removed).
* breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
which includes previous return value as main_action, and a step_resume
bit.
* breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
there is another breakpoint there, insert it.
* infrun.c (wait_for_inferior): Rearrange the spaghetti a bit. Use
a few more gotos.
Various: Clean up and add comments.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 30dfd72..30ab100 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -725,7 +725,9 @@ wait_for_inferior () /* Handle cases caused by hitting a breakpoint. */ { CORE_ADDR jmp_buf_pc; - struct bpstat_what what = bpstat_what (stop_bpstat); + struct bpstat_what what; + + what = bpstat_what (stop_bpstat); switch (what.main_action) { |