From: Hui Zhu Date: Thu, 25 Apr 2013 08:15:34 +0000 (+0000) Subject: 2013-04-25 Hui Zhu X-Git-Tag: gdb_7_6-2013-04-26-release~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9658b63609384b8013a4b6ca3c42ac1a15d7571;p=thirdparty%2Fbinutils-gdb.git 2013-04-25 Hui Zhu * breakpoint.c (build_target_command_list): Change loc->cond_bytecode to loc->cmd_bytecode. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 811b57e57c1..481c82faac8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-04-25 Hui Zhu + + * breakpoint.c (build_target_command_list): Change loc->cond_bytecode + to loc->cmd_bytecode. + 2013-04-25 Hui Zhu PR gdb/15293 diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index a589e3fc0a0..abcaf0ffc36 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2348,11 +2348,11 @@ build_target_command_list (struct bp_location *bl) { /* Only go as far as the first NULL bytecode is located. */ - if (!loc->cond_bytecode) + if (loc->cmd_bytecode == NULL) return; - free_agent_expr (loc->cond_bytecode); - loc->cond_bytecode = NULL; + free_agent_expr (loc->cmd_bytecode); + loc->cmd_bytecode = NULL; } } }