2013-04-25 Hui Zhu <hui@codesourcery.com>
authorHui Zhu <teawater@gmail.com>
Wed, 24 Apr 2013 23:09:31 +0000 (23:09 +0000)
committerHui Zhu <teawater@gmail.com>
Wed, 24 Apr 2013 23:09:31 +0000 (23:09 +0000)
* breakpoint.c (build_target_command_list): Change loc->cond_bytecode
to loc->cmd_bytecode.

gdb/ChangeLog
gdb/breakpoint.c

index 1510c7d..75642fa 100644 (file)
@@ -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.
index f155b9e..35ada7a 100644 (file)
@@ -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;
            }
        }
     }