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 1510c7dea8b89c3528a453d832ce21ba4dabfafd..75642fab82b8668d95a877c7b0a427741a5ff50e 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 f155b9eb59ed874fb0e5f5ccd0419d950ed42651..35ada7aed090b064928eaae4e82242bcd59f4d0e 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;
            }
        }
     }