diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0958c5b2c7..065319c9bd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2016-01-28 Yao Qi + + * breakpoint.c (build_target_command_list): Don't call continue + if aexpr is NULL. + (build_target_condition_list): Likewise. + 2016-01-27 Kevin Buettner * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8 diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 7b610ef28d..afd9065193 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2347,12 +2347,6 @@ build_target_condition_list (struct bp_location *bl) need to parse the condition to bytecodes again. */ aexpr = parse_cond_to_aexpr (bl->address, loc->cond); loc->cond_bytecode = aexpr; - - /* Check if we managed to parse the conditional expression - correctly. If not, we will not send this condition - to the target. */ - if (aexpr) - continue; } /* If we have a NULL bytecode expression, it means something @@ -2553,9 +2547,6 @@ build_target_command_list (struct bp_location *bl) aexpr = parse_cmd_to_aexpr (bl->address, loc->owner->extra_string); loc->cmd_bytecode = aexpr; - - if (!aexpr) - continue; } /* If we have a NULL bytecode expression, it means something