diff options
author | Joel Brobecker <brobecker@gnat.com> | 2002-08-23 21:55:36 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2002-08-23 21:55:36 +0000 |
commit | 50d899fced385dec7c94c931f62f043c90b41b01 (patch) | |
tree | 91b01c5c6ee10e7c7cf80e7813c9f59f3bf2f87e /gdb/infrun.c | |
parent | b20cd044d0501b92524632a13376bf2af8c1279a (diff) | |
download | gdb-50d899fced385dec7c94c931f62f043c90b41b01.tar.gz |
* infrun.c (handle_inferior_event): Move a comment outside of a
function call, in order to avoid indent reformatting this part
of the code in an unreadable way.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 0777bdebc05..b6c23425459 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2103,18 +2103,18 @@ handle_inferior_event (struct execution_control_state *ecs) This is only important on targets where DECR_PC_AFTER_BREAK is non-zero. The prev_pc test is meant to distinguish between singlestepping a trap instruction, and singlestepping thru a - jump to the instruction following a trap instruction. */ - + jump to the instruction following a trap instruction. + + Therefore, pass TRUE if our reason for stopping is + something other than hitting a breakpoint. We do this by + checking that either: we detected earlier a software single + step trap or, 1) stepping is going on and 2) we didn't hit + a breakpoint in a signal handler without an intervening stop + in sigtramp, which is detected by a new stack pointer value + below any usual function calling stack adjustments. */ stop_bpstat = bpstat_stop_status (&stop_pc, - /* Pass TRUE if our reason for stopping is something other - than hitting a breakpoint. We do this by checking that - either we detected earlier a software single step trap or - 1) stepping is going on and 2) we didn't hit a breakpoint - in a signal handler without an intervening stop in - sigtramp, which is detected by a new stack pointer value - below any usual function calling stack adjustments. */ sw_single_step_trap_p || (currently_stepping (ecs) && prev_pc != stop_pc - DECR_PC_AFTER_BREAK |