]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
authorAndrew Cagney <cagney@redhat.com>
Fri, 16 Aug 2002 15:37:54 +0000 (15:37 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 16 Aug 2002 15:37:54 +0000 (15:37 +0000)
not_a_sw_breakpoint.
* breakpoint.h (bpstat_stop_status): Add parameter names.

gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h

index fca02ecda46bd5b204bf478d6a7528c8f51d9e30..2559d7e2cb57dbc8f29824324ce8e040efd8cfaa 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-16  Andrew Cagney  <ac131313@redhat.com>
+
+       * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
+       not_a_sw_breakpoint.
+       * breakpoint.h (bpstat_stop_status): Add parameter names.
+
 2002-08-16  Grace Sainsbury  <graces@redhat.com>
 
        * remote.c (remote_insert_hw_breakpoint)
index ce1360d53e816f6548b9d96ffa1d788d851e8fb3..86e700eeac7a44bac8a8b4f814938ea5b77d519e 100644 (file)
@@ -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)
index 7ab300ffb65efac794e9500c99558d38da537716..226703b59380c4b613b550366278328f26b124ec 100644 (file)
@@ -322,7 +322,7 @@ extern void bpstat_clear (bpstat *);
    is part of the bpstat is copied as well.  */
 extern bpstat bpstat_copy (bpstat);
 
-extern bpstat bpstat_stop_status (CORE_ADDR *int);
+extern bpstat bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint);
 \f
 /* This bpstat_what stuff tells wait_for_inferior what to do with a
    breakpoint (a challenging task).  */