1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

better check for watchpoints.

This commit is contained in:
Alain Magloire 2003-01-28 19:54:13 +00:00
parent a3e369d39d
commit d206c6748f

View file

@ -62,6 +62,7 @@ public class MIBreakpoint {
boolean isAWpt; boolean isAWpt;
boolean isRWpt; boolean isRWpt;
boolean isWWpt; boolean isWWpt;
boolean isHdw;
public MIBreakpoint(MITuple tuple) { public MIBreakpoint(MITuple tuple) {
parse(tuple); parse(tuple);
@ -75,10 +76,6 @@ public class MIBreakpoint {
return type; return type;
} }
public boolean isHardware() {
return getType().startsWith("hw") || isWatchpoint();
}
public boolean isTemporary() { public boolean isTemporary() {
return getDisposition().equals("del"); return getDisposition().equals("del");
} }
@ -91,6 +88,15 @@ public class MIBreakpoint {
isWpt = w; isWpt = w;
} }
public boolean isHardware() {
return isHdw;
}
public void setHardware(boolean hd) {
isWpt = hd;
isHdw = hd;
}
public boolean isAccessWatchpoint() { public boolean isAccessWatchpoint() {
return isAWpt; return isAWpt;
} }
@ -183,6 +189,29 @@ public class MIBreakpoint {
} }
} else if (var.equals("type")) { } else if (var.equals("type")) {
type = str; type = str;
//type="hw watchpoint"
if (type.startsWith("hw")) {
isHdw = true;
isWWpt = true;
isWpt = true;
}
//type="acc watchpoint"
if (type.startsWith("acc")) {
isWWpt = true;
isRWpt = true;
isWpt = true;
}
//type="read watchpoint"
if (type.startsWith("read")) {
isRWpt = true;
isWpt = true;
}
// ??
if (type.equals("watchpoint")) {
isWpt = true;
}
// type="breakpoint"
// default ok.
} else if (var.equals("disp")) { } else if (var.equals("disp")) {
disp = str; disp = str;
} else if (var.equals("enabled")) { } else if (var.equals("enabled")) {