aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/breakpoint.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ae3449e..94264e1 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 8ef5cd9..bb5dd63 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;
}