diff options
author | Joel Brobecker <brobecker@gnat.com> | 2002-08-17 00:16:54 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2002-08-17 00:16:54 +0000 |
commit | 238617f6788c017a70157ce0d37cb7a35088df00 (patch) | |
tree | 978ca918391f49fe6b149c7b49b7905e6a6cfba0 /gdb | |
parent | 541a7aacdc0419dc26ce7767d98f86aecad74053 (diff) | |
download | gdb-238617f6788c017a70157ce0d37cb7a35088df00.zip gdb-238617f6788c017a70157ce0d37cb7a35088df00.tar.gz gdb-238617f6788c017a70157ce0d37cb7a35088df00.tar.bz2 |
* infrun.c (handle_inferior_event): Minor reformatting, to make
a rather long condition expression easier to read.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infrun.c | 27 |
2 files changed, 18 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d0a60c6..e819fd6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-08-16 Joel Brobecker <brobecker@gnat.com> + + * infrun.c (handle_inferior_event): Minor reformatting, to make + a rather long condition expression easier to read. + 2002-08-16 Andrew Cagney <ac131313@redhat.com> * Makefile.in (gdbtk.o): Move to end of file. diff --git a/gdb/infrun.c b/gdb/infrun.c index af0b302..8375b69 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; |