* breakpoint.c (condition_command): Pass condition expression to
authorPedro Alves <palves@redhat.com>
Fri, 9 Apr 2010 13:56:08 +0000 (13:56 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 9 Apr 2010 13:56:08 +0000 (13:56 +0000)
set_breakpoint_condition stripped from breakpoint number.

gdb/ChangeLog
gdb/breakpoint.c

index ae3449e..94264e1 100644 (file)
@@ -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 ...
index 8ef5cd9..bb5dd63 100644 (file)
@@ -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;
       }