* 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 ae3449eca1e675e9f2ebaedcb25b63e87c2702df..94264e1c695617864b9a62e8065261db9a57c9a0 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 8ef5cd926a01e223d5c8a2022357530fced966bf..bb5dd6314edba279114e162cc035697d191872cc 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;
       }