aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-08-16 15:37:54 +0000
committerAndrew Cagney <cagney@redhat.com>2002-08-16 15:37:54 +0000
commit6e31adb3f7c1c5db158558c23e13d11091046d43 (patch)
treedce2bf4b1066d4ef39d78ae869006e9e48f0ebae /gdb/breakpoint.c
parentc8189ed1622f773021bcced903b71fed26727f09 (diff)
downloadgdb-6e31adb3f7c1c5db158558c23e13d11091046d43.zip
gdb-6e31adb3f7c1c5db158558c23e13d11091046d43.tar.gz
gdb-6e31adb3f7c1c5db158558c23e13d11091046d43.tar.bz2
* breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
not_a_sw_breakpoint. * breakpoint.h (bpstat_stop_status): Add parameter names.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ce1360d..86e700e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2390,7 +2390,7 @@ which its expression is valid.\n");
/* Get a bpstat associated with having just stopped at address *PC
and frame address CORE_ADDRESS. Update *PC to point at the
- breakpoint (if we hit a breakpoint). NOT_A_BREAKPOINT is nonzero
+ breakpoint (if we hit a breakpoint). NOT_A_SW_BREAKPOINT is nonzero
if this is known to not be a real breakpoint (it could still be a
watchpoint, though). */
@@ -2409,7 +2409,7 @@ which its expression is valid.\n");
commands, FIXME??? fields. */
bpstat
-bpstat_stop_status (CORE_ADDR *pc, int not_a_breakpoint)
+bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint)
{
register struct breakpoint *b, *temp;
CORE_ADDR bp_addr;
@@ -2423,13 +2423,13 @@ bpstat_stop_status (CORE_ADDR *pc, int not_a_breakpoint)
"Error evaluating expression for watchpoint %d\n";
char message[sizeof (message1) + 30 /* slop */ ];
- /* Get the address where the breakpoint would have been.
- The "not_a_breakpoint" argument is meant to distinguish
- between a breakpoint trap event and a trace/singlestep
- trap event. For a trace/singlestep trap event, we would
- not want to subtract DECR_PC_AFTER_BREAK from the PC. */
+ /* Get the address where the breakpoint would have been. The
+ "not_a_sw_breakpoint" argument is meant to distinguish between a
+ breakpoint trap event and a trace/singlestep trap event. For a
+ trace/singlestep trap event, we would not want to subtract
+ DECR_PC_AFTER_BREAK from the PC. */
- bp_addr = *pc - (not_a_breakpoint && !SOFTWARE_SINGLE_STEP_P () ?
+ bp_addr = *pc - (not_a_sw_breakpoint && !SOFTWARE_SINGLE_STEP_P () ?
0 : DECR_PC_AFTER_BREAK);
ALL_BREAKPOINTS_SAFE (b, temp)