aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-06-11 18:51:42 +0000
committerPedro Alves <palves@redhat.com>2009-06-11 18:51:42 +0000
commit80c99de1bcdd04fdfd44d331de3746d4484f839a (patch)
tree20189f8e2ad789ee062170e4e8430efbaafc2baa
parentdbfb31a45ca49473f5e49687c0845d4b6c2310d9 (diff)
downloadgdb-80c99de1bcdd04fdfd44d331de3746d4484f839a.zip
gdb-80c99de1bcdd04fdfd44d331de3746d4484f839a.tar.gz
gdb-80c99de1bcdd04fdfd44d331de3746d4484f839a.tar.bz2
* breakpoint.c (break_command_really): Rename local variable
breakpoint_chain to bkpt_chain.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c19
2 files changed, 14 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index aef3ef7..23c2e66 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-11 Pedro Alves <pedro@codesourcery.com>
+
+ * breakpoint.c (break_command_really): Rename local variable
+ breakpoint_chain to bkpt_chain.
+
2009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
Add support for XMM registers.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index c4c0819..8732f2e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5688,7 +5688,7 @@ break_command_really (char *arg, char *cond_string, int thread,
char *addr_start = arg;
char **addr_string;
struct cleanup *old_chain;
- struct cleanup *breakpoint_chain = NULL;
+ struct cleanup *bkpt_chain = NULL;
struct captured_parse_breakpoint_args parse_args;
int i;
int pending = 0;
@@ -5766,12 +5766,11 @@ break_command_really (char *arg, char *cond_string, int thread,
/* ----------------------------- SNIP -----------------------------
Anything added to the cleanup chain beyond this point is assumed
to be part of a breakpoint. If the breakpoint create succeeds
- then the memory is not reclaimed. */
- breakpoint_chain = make_cleanup (null_cleanup, 0);
+ then the memory is not reclaimed. */
+ bkpt_chain = make_cleanup (null_cleanup, 0);
/* Mark the contents of the addr_string for cleanup. These go on
- the breakpoint_chain and only occure if the breakpoint create
- fails. */
+ the bkpt_chain and only occur if the breakpoint create fails. */
for (i = 0; i < sals.nelts; i++)
{
if (addr_string[i] != NULL)
@@ -5843,13 +5842,13 @@ break_command_really (char *arg, char *cond_string, int thread,
if (sals.nelts > 1)
warning (_("Multiple breakpoints were set.\n"
"Use the \"delete\" command to delete unwanted breakpoints."));
- /* That's it. Discard the cleanups for data inserted into the
- breakpoint. */
- discard_cleanups (breakpoint_chain);
- /* But cleanup everything else. */
+ /* That's it. Discard the cleanups for data inserted into the
+ breakpoint. */
+ discard_cleanups (bkpt_chain);
+ /* But cleanup everything else. */
do_cleanups (old_chain);
- /* error call may happen here - have BREAKPOINT_CHAIN already discarded. */
+ /* error call may happen here - have BKPT_CHAIN already discarded. */
update_global_location_list (1);
}