diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java index 277e2bda924..3b646900305 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java @@ -7,6 +7,7 @@ * * Contributors: * Ericsson - Initial API and implementation + * Mike Wrighton (Mentor Graphics) - Formatting address for a watchpoint (Bug 376105) *******************************************************************************/ package org.eclipse.cdt.dsf.mi.service; @@ -736,6 +737,11 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints, I boolean isRead = (Boolean) getProperty(attributes, READ, false); boolean isWrite = (Boolean) getProperty(attributes, WRITE, false); + if (expression.length() > 0 && Character.isDigit(expression.charAt(0))) { + // If expression is an address, we need the '*' prefix. + expression = "*" + expression; //$NON-NLS-1$ + } + // The DataRequestMonitor for the add request DataRequestMonitor addWatchpointDRM = new DataRequestMonitor(getExecutor(), drm) {