summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2013-04-24 23:09:30 +0000
committerHui Zhu <teawater@gmail.com>2013-04-24 23:09:30 +0000
commitd1debb56c4486497d184ac21c081f47c714f5f0f (patch)
tree805a2a73bd69e913a3a47e8130065044bb368f52 /gdb/breakpoint.c
parentffc9246b7b8b1ba1c665ca8deb8c7a59dc129d1d (diff)
downloadgdb-d1debb56c4486497d184ac21c081f47c714f5f0f.tar.gz
2013-04-25 Hui Zhu <hui@codesourcery.com>
* breakpoint.c (build_target_command_list): Change loc->cond_bytecode to loc->cmd_bytecode.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index f155b9eb59e..35ada7aed09 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2343,11 +2343,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;
}
}
}