summaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-08-17 00:16:54 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-08-17 00:16:54 +0000
commitf8e1e99433e74acc282efd04f9d05667b4f9f1bb (patch)
treeb5ce6e98f1456e8a26e2de97c711888ecb48b2f8 /gdb/infrun.c
parenta4474818bc2743bad073af052d5e9a21e1e4c2a5 (diff)
downloadgdb-f8e1e99433e74acc282efd04f9d05667b4f9f1bb.tar.gz
* infrun.c (handle_inferior_event): Minor reformatting, to make
a rather long condition expression easier to read.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index af0b3029357..8375b6937c1 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2106,20 +2106,19 @@ handle_inferior_event (struct execution_control_state *ecs)
singlestepping a trap instruction, and singlestepping thru a
jump to the instruction following a trap instruction. */
- 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
- 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. */
- (currently_stepping (ecs)
- && prev_pc !=
- stop_pc - DECR_PC_AFTER_BREAK
- && !(step_range_end
- && INNER_THAN (read_sp (),
- (step_sp -
- 16)))));
+ 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
+ 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. */
+ (currently_stepping (ecs)
+ && prev_pc != stop_pc - DECR_PC_AFTER_BREAK
+ && !(step_range_end
+ && INNER_THAN (read_sp (), (step_sp - 16)))));
/* Following in case break condition called a
function. */
stop_print_frame = 1;