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 | 3e6564e1ffbf12b7d15e1124139c02408f054007 (patch) | |
tree | 1416ef51ad98dc9aebfa9734af3c6fd32a43dd3d | |
parent | fd31a1711cf8813860353e9196cdfdfbbdd749d4 (diff) | |
download | gdb-3e6564e1ffbf12b7d15e1124139c02408f054007.zip gdb-3e6564e1ffbf12b7d15e1124139c02408f054007.tar.gz gdb-3e6564e1ffbf12b7d15e1124139c02408f054007.tar.bz2 |
* 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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/infrun.c | 18 |
2 files changed, 15 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f6479c2..f20d372 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-08-23 Joel Brobecker <brobecker@gnat.com> + + * 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. + 2002-08-23 Grace Sainsbury <graces@redhat.com> * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg diff --git a/gdb/infrun.c b/gdb/infrun.c index 0777bde..b6c2342 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 |