mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-21 07:55:24 +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:
parent
bb46ce4f7f
commit
97fa2e884b
2 changed files with 6 additions and 1 deletions
|
@ -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
|
2004-11-16 Alain Magloire
|
||||||
Do not check for isEnable() when changing condition.
|
Do not check for isEnable() when changing condition.
|
||||||
* cdi/org/eclipse/cdt/debug/mi/core/cdi/mode/Breakpoint.java
|
* cdi/org/eclipse/cdt/debug/mi/core/cdi/mode/Breakpoint.java
|
||||||
|
|
|
@ -366,6 +366,7 @@ public class BreakpointManager extends Manager {
|
||||||
watchType &= ICDIWatchpoint.WRITE;
|
watchType &= ICDIWatchpoint.WRITE;
|
||||||
}
|
}
|
||||||
Watchpoint wpoint = new Watchpoint(target, allMIBreakpoints[i].getWhat(), type, watchType, condition);
|
Watchpoint wpoint = new Watchpoint(target, allMIBreakpoints[i].getWhat(), type, watchType, condition);
|
||||||
|
wpoint.setMIBreakpoints(new MIBreakpoint[] {allMIBreakpoints[i]});
|
||||||
bList.add(wpoint);
|
bList.add(wpoint);
|
||||||
} else {
|
} else {
|
||||||
Location location = new Location (allMIBreakpoints[i].getFile(),
|
Location location = new Location (allMIBreakpoints[i].getFile(),
|
||||||
|
@ -641,7 +642,7 @@ public class BreakpointManager extends Manager {
|
||||||
try {
|
try {
|
||||||
miSession.postCommand(breakDisable);
|
miSession.postCommand(breakDisable);
|
||||||
MIInfo disableInfo = breakDisable.getMIInfo();
|
MIInfo disableInfo = breakDisable.getMIInfo();
|
||||||
if (info == null) {
|
if (disableInfo == null) {
|
||||||
throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$
|
throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue