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:
parent
a3e369d39d
commit
d206c6748f
1 changed files with 33 additions and 4 deletions
|
@ -62,6 +62,7 @@ public class MIBreakpoint {
|
|||
boolean isAWpt;
|
||||
boolean isRWpt;
|
||||
boolean isWWpt;
|
||||
boolean isHdw;
|
||||
|
||||
public MIBreakpoint(MITuple tuple) {
|
||||
parse(tuple);
|
||||
|
@ -75,10 +76,6 @@ public class MIBreakpoint {
|
|||
return type;
|
||||
}
|
||||
|
||||
public boolean isHardware() {
|
||||
return getType().startsWith("hw") || isWatchpoint();
|
||||
}
|
||||
|
||||
public boolean isTemporary() {
|
||||
return getDisposition().equals("del");
|
||||
}
|
||||
|
@ -91,6 +88,15 @@ public class MIBreakpoint {
|
|||
isWpt = w;
|
||||
}
|
||||
|
||||
public boolean isHardware() {
|
||||
return isHdw;
|
||||
}
|
||||
|
||||
public void setHardware(boolean hd) {
|
||||
isWpt = hd;
|
||||
isHdw = hd;
|
||||
}
|
||||
|
||||
public boolean isAccessWatchpoint() {
|
||||
return isAWpt;
|
||||
}
|
||||
|
@ -183,6 +189,29 @@ public class MIBreakpoint {
|
|||
}
|
||||
} else if (var.equals("type")) {
|
||||
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")) {
|
||||
disp = str;
|
||||
} else if (var.equals("enabled")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue