diff options
author | Pedro Alves <pedro@codesourcery.com> | 2010-04-09 13:56:07 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2010-04-09 13:56:07 +0000 |
commit | 6732966215286477029fe239966883e140dbef8a (patch) | |
tree | bb644fd1cef16896bc571a9811073b780161cf00 /gdb | |
parent | c86d68befad2b8e65a1ed79297d4ab3e7b70df9e (diff) | |
download | gdb-6732966215286477029fe239966883e140dbef8a.tar.gz |
* breakpoint.c (condition_command): Pass condition expression to
set_breakpoint_condition stripped from breakpoint number.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/breakpoint.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ae3449eca1e..94264e1c695 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,11 @@ +2010-04-09 Pedro Alves <pedro@codesourcery.com> + + * breakpoint.c (condition_command): Pass condition expression to + set_breakpoint_condition stripped from breakpoint number. + 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> Thiago Jung Bauermann <bauerman@br.ibm.com> - Tom Tromey <tromey@redhat.com> + Tom Tromey <tromey@redhat.com> * breakpoint.c (condition_command): Simplify. Move condition setting code to ... diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 8ef5cd926a0..bb5dd6314ed 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -784,7 +784,7 @@ condition_command (char *arg, int from_tty) ALL_BREAKPOINTS (b) if (b->number == bnum) { - set_breakpoint_condition (b, arg, from_tty); + set_breakpoint_condition (b, p, from_tty); return; } |