From 2566ad2d88d7db79b088d8c5a894296f5e81f78f Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 9 Apr 2010 13:56:08 +0000 Subject: [PATCH] * breakpoint.c (condition_command): Pass condition expression to set_breakpoint_condition stripped from breakpoint number. --- gdb/ChangeLog | 7 ++++++- 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 + + * breakpoint.c (condition_command): Pass condition expression to + set_breakpoint_condition stripped from breakpoint number. + 2010-04-09 Phil Muldoon Thiago Jung Bauermann - Tom Tromey + Tom Tromey * 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; } -- 2.30.2