mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-930: Reporting breakoints kinds correctly in Windows
This commit is contained in:
parent
73ba6b28d0
commit
a27972db2e
1 changed files with 15 additions and 5 deletions
|
@ -67,11 +67,21 @@ public interface DbgModelTargetBreakpointSpec extends //
|
|||
|
||||
@Override
|
||||
public default TargetBreakpointKindSet getKinds() {
|
||||
return TargetBreakpointKindSet.of(
|
||||
TargetBreakpointKind.SW_EXECUTE,
|
||||
TargetBreakpointKind.HW_EXECUTE,
|
||||
TargetBreakpointKind.READ,
|
||||
TargetBreakpointKind.WRITE);
|
||||
switch (getBreakpointInfo().getType()) {
|
||||
case BREAKPOINT:
|
||||
return TargetBreakpointKindSet.of(TargetBreakpointKind.SW_EXECUTE);
|
||||
case HW_BREAKPOINT:
|
||||
return TargetBreakpointKindSet.of(TargetBreakpointKind.HW_EXECUTE);
|
||||
case HW_WATCHPOINT:
|
||||
return TargetBreakpointKindSet.of(TargetBreakpointKind.WRITE);
|
||||
case READ_WATCHPOINT:
|
||||
return TargetBreakpointKindSet.of(TargetBreakpointKind.READ);
|
||||
case ACCESS_WATCHPOINT:
|
||||
return TargetBreakpointKindSet.of(TargetBreakpointKind.READ,
|
||||
TargetBreakpointKind.WRITE);
|
||||
default:
|
||||
return TargetBreakpointKindSet.of();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue