aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-04-09 13:56:08 +0000
committerPedro Alves <palves@redhat.com>2010-04-09 13:56:08 +0000
commit2566ad2d88d7db79b088d8c5a894296f5e81f78f (patch)
treeff082309d6d08de98b533cc9526f1a7b348d245e /gdb/breakpoint.c
parentadc368187c7bc29c3c227cf986dd021973ce6eaf (diff)
downloadgdb-2566ad2d88d7db79b088d8c5a894296f5e81f78f.zip
gdb-2566ad2d88d7db79b088d8c5a894296f5e81f78f.tar.gz
gdb-2566ad2d88d7db79b088d8c5a894296f5e81f78f.tar.bz2
* breakpoint.c (condition_command): Pass condition expression to
set_breakpoint_condition stripped from breakpoint number.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
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;
}