aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2013-04-24 23:09:31 +0000
committerHui Zhu <teawater@gmail.com>2013-04-24 23:09:31 +0000
commit40fb6c5ead111ace3342aa4d530e281571c45fc7 (patch)
treedf871293a2301d52ff60ff08b6e52145c7e9d4ac
parente3031850bc442fef024349567221606cdbdebc05 (diff)
downloadgdb-40fb6c5ead111ace3342aa4d530e281571c45fc7.zip
gdb-40fb6c5ead111ace3342aa4d530e281571c45fc7.tar.gz
gdb-40fb6c5ead111ace3342aa4d530e281571c45fc7.tar.bz2
2013-04-25 Hui Zhu <hui@codesourcery.com>
* breakpoint.c (build_target_command_list): Change loc->cond_bytecode to loc->cmd_bytecode.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1510c7d..75642fa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-25 Hui Zhu <hui@codesourcery.com>
+
+ * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
+ to loc->cmd_bytecode.
+
2013-04-24 Doug Evans <dje@google.com>
* dwarf2read.c (setup_type_unit_groups): Fix comment.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index f155b9e..35ada7a 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;
}
}
}