mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 432988 - Breakpoint Log action cannot evaluate expression at
breakpoint suspend event Use suspend context instead of breakpoint context for evaluating expression Change-Id: I8376baf8dc7efe5f5ad2a3254c29b841ae9940ba Signed-off-by: Teodor Madan <teodor.madan@freescale.com> Reviewed-on: https://git.eclipse.org/r/25185 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Hudson CI
This commit is contained in:
parent
b96e29ae62
commit
5216346374
1 changed files with 2 additions and 4 deletions
|
@ -17,11 +17,9 @@ import org.eclipse.cdt.debug.core.breakpointactions.ILogActionEnabler;
|
|||
import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor;
|
||||
import org.eclipse.cdt.dsf.concurrent.DsfExecutor;
|
||||
import org.eclipse.cdt.dsf.concurrent.Query;
|
||||
import org.eclipse.cdt.dsf.datamodel.DMContexts;
|
||||
import org.eclipse.cdt.dsf.datamodel.IDMContext;
|
||||
import org.eclipse.cdt.dsf.debug.service.IExpressions;
|
||||
import org.eclipse.cdt.dsf.debug.service.IFormattedValues;
|
||||
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext;
|
||||
import org.eclipse.cdt.dsf.debug.service.IExpressions.IExpressionDMContext;
|
||||
import org.eclipse.cdt.dsf.debug.service.IFormattedValues.FormattedValueDMContext;
|
||||
import org.eclipse.cdt.dsf.debug.service.IFormattedValues.FormattedValueDMData;
|
||||
|
@ -34,12 +32,12 @@ public class MILogActionEnabler implements ILogActionEnabler {
|
|||
|
||||
private final DsfExecutor fExecutor;
|
||||
private final DsfServicesTracker fServiceTracker;
|
||||
private final IBreakpointsTargetDMContext fContext;
|
||||
private final IDMContext fContext;
|
||||
|
||||
public MILogActionEnabler(DsfExecutor executor, DsfServicesTracker serviceTracker, IDMContext context) {
|
||||
fExecutor = executor;
|
||||
fServiceTracker = serviceTracker;
|
||||
fContext = DMContexts.getAncestorOfType(context, IBreakpointsTargetDMContext.class);
|
||||
fContext = context;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue