]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2013-04-25 Hui Zhu <hui@codesourcery.com>
authorHui Zhu <teawater@gmail.com>
Thu, 25 Apr 2013 08:15:34 +0000 (08:15 +0000)
committerHui Zhu <teawater@gmail.com>
Thu, 25 Apr 2013 08:15:34 +0000 (08:15 +0000)
* breakpoint.c (build_target_command_list): Change loc->cond_bytecode
to loc->cmd_bytecode.

gdb/ChangeLog
gdb/breakpoint.c

index 811b57e57c119c145c38768c6648df23639b00c3..481c82faac800c5a9654f5e430b147a7828ac0e5 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-25  Hui Zhu  <hui@codesourcery.com>
 
        PR gdb/15293
index a589e3fc0a062889d830682d24ec2d0983d6ccfa..abcaf0ffc362c077abdc8b68e23a6bdec7be56eb 100644 (file)
@@ -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;
            }
        }
     }