1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-20 23:45:23 +02:00

2004-11-16 Alain Magloire

NPE when watchpoints are set in the gdb console.
	* cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
This commit is contained in:
Alain Magloire 2004-11-16 20:03:08 +00:00
parent bb46ce4f7f
commit 97fa2e884b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-11-16 Alain Magloire
NPE when watchpoints are set in the gdb console.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
2004-11-16 Alain Magloire
Do not check for isEnable() when changing condition.
* cdi/org/eclipse/cdt/debug/mi/core/cdi/mode/Breakpoint.java

View file

@ -366,6 +366,7 @@ public class BreakpointManager extends Manager {
watchType &= ICDIWatchpoint.WRITE;
}
Watchpoint wpoint = new Watchpoint(target, allMIBreakpoints[i].getWhat(), type, watchType, condition);
wpoint.setMIBreakpoints(new MIBreakpoint[] {allMIBreakpoints[i]});
bList.add(wpoint);
} else {
Location location = new Location (allMIBreakpoints[i].getFile(),
@ -641,7 +642,7 @@ public class BreakpointManager extends Manager {
try {
miSession.postCommand(breakDisable);
MIInfo disableInfo = breakDisable.getMIInfo();
if (info == null) {
if (disableInfo == null) {
throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$
}
} catch (MIException e) {