Community
Participate
Working Groups
dprintf can't work as expected due to https://git.eclipse.org/c/tcf/org.eclipse.tcf.agent.git/commit/?id=27bbd177b7b6effe192225788869bb93f07e51cf As you know, dprintf is a breakpoint whose condition is just like '$printf(...)' and related BP should never be hit. But currently, dprintf related BPs will be hit unexpectly. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ static void evaluate_condition(void * x) { ... if (check_context_ids_condition(bp, ctx)) condition_ok = 1; if (condition_ok && bp->condition != NULL) { #if ENABLE_Expressions Value v; if (evaluate_expression(ctx, STACK_TOP_FRAME, 0, bp->condition, 1, &v) < 0 ||(v.size > 0 && value_to_boolean(&v, &condition_ok) < 0)) { error = errno; } #endif } ... } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ For dprintf, v.size is set to 0, and then variable 'condition_ok' is always equal to 1 which result in the final hit. Can you help to check it? thanks.
Fixed. Thanks!