[PATCH] Minor reformatting in infrun.c
Joel Brobecker
brobecker@gnat.com
Fri Aug 16 17:18:00 GMT 2002
I am about to touch this part of the code, and it needed a bit of
reformatting, so I thought I'd commit the reformatting separately.
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.
--
Joel
-------------- next part --------------
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.65
diff -c -3 -p -r1.65 infrun.c
*** infrun.c 16 Aug 2002 17:56:17 -0000 1.65
--- infrun.c 16 Aug 2002 23:57:51 -0000
*************** handle_inferior_event (struct execution_
*** 2106,2125 ****
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)))));
/* Following in case break condition called a
function. */
stop_print_frame = 1;
--- 2106,2124 ----
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)))));
/* Following in case break condition called a
function. */
stop_print_frame = 1;
More information about the Gdb-patches
mailing list