diff options
author | Marc Khouzam <marc.khouzam@ericsson.com> | 2012-07-24 17:37:56 +0000 |
---|---|---|
committer | Marc Khouzam <marc.khouzam@ericsson.com> | 2012-07-24 17:37:56 +0000 |
commit | e12c771396c1f7bbb6246d97916632af923f6860 (patch) | |
tree | c2629924719473c76fe2116a8f04106231274c29 /gdb/breakpoint.c | |
parent | 5e73442d4c1ea1261339be580fb0f12bdc4b9e29 (diff) | |
download | gdb-e12c771396c1f7bbb6246d97916632af923f6860.zip gdb-e12c771396c1f7bbb6246d97916632af923f6860.tar.gz gdb-e12c771396c1f7bbb6246d97916632af923f6860.tar.bz2 |
2012-07-20 Marc Khouzam <marc.khouzam@ericsson.com>
* breakpoint.c (create_breakpoint): Store condition for pending
breakpoints.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index cbb150f..03719d4 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -9557,7 +9557,18 @@ create_breakpoint (struct gdbarch *gdbarch, init_raw_breakpoint_without_location (b, gdbarch, type_wanted, ops); b->addr_string = copy_arg; - b->cond_string = NULL; + if (parse_condition_and_thread) + b->cond_string = NULL; + else + { + /* Create a private copy of condition string. */ + if (cond_string) + { + cond_string = xstrdup (cond_string); + make_cleanup (xfree, cond_string); + } + b->cond_string = cond_string; + } b->extra_string = NULL; b->ignore_count = ignore_count; b->disposition = tempflag ? disp_del : disp_donttouch; |