1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 12:25:35 +02:00

2005-02-01 Alain Magloire

Part of Fix for PR 84165
	We check in the expression is a number and
	add a "*" for address watchpoint
	* cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
This commit is contained in:
Alain Magloire 2005-02-01 21:09:33 +00:00
parent 04d743c153
commit 956abd7934
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2005-02-01 Alain Magloire
Part of Fix for PR 84165
We check in the expression is a number and
add a "*" for address watchpoint
* cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
2005-01-20 Mikhail Khodjaiants
Fix for bug 83355: The disable/enable breakpoints durning debugging acts weird.
* cdi\org\eclipse\cdt\debug\mi\core\cdi\model\Breakpoint.java

View file

@ -698,6 +698,14 @@ public class BreakpointManager extends Manager {
boolean read = ( !((watchType & ICDIWatchpoint.WRITE) == ICDIWatchpoint.WRITE) &&
(watchType & ICDIWatchpoint.READ) == ICDIWatchpoint.READ );
try {
// Check if this an address watchpoint, and add a '*'
Integer.decode(expression);
expression = '*' + expression;
} catch (NumberFormatException e) {
//
}
MISession miSession = target.getMISession();
boolean state = suspendInferior(target);
CommandFactory factory = miSession.getCommandFactory();