mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 376105 - "Add watchpoint (C/C++)" context menu option from memory
view does not add an asterisk before the memory address value. Change-Id: If6658135a06f6d67a7306595a874938e96956a3d Signed-off-by: Mike Wrighton <mike.wrighton@googlemail.com> Reviewed-on: https://git.eclipse.org/r/15181 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
0fafbd1f91
commit
d54431f7eb
1 changed files with 6 additions and 0 deletions
|
@ -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<MIBreakInsertInfo> addWatchpointDRM =
|
||||
new DataRequestMonitor<MIBreakInsertInfo>(getExecutor(), drm) {
|
||||
|
|
Loading…
Add table
Reference in a new issue