Support for hardware breakpoints
This commit is contained in:
@@ -218,12 +218,15 @@ namespace Services
|
||||
);
|
||||
}
|
||||
|
||||
void TargetControllerService::setBreakpoint(TargetBreakpoint breakpoint) const {
|
||||
this->commandManager.sendCommandAndWaitForResponse(
|
||||
std::make_unique<SetBreakpoint>(breakpoint),
|
||||
Targets::TargetBreakpoint TargetControllerService::setBreakpoint(
|
||||
Targets::TargetMemoryAddress address,
|
||||
Targets::TargetBreakpoint::Type preferredType
|
||||
) const {
|
||||
return this->commandManager.sendCommandAndWaitForResponse(
|
||||
std::make_unique<SetBreakpoint>(address, preferredType),
|
||||
this->defaultTimeout,
|
||||
this->activeAtomicSessionId
|
||||
);
|
||||
)->breakpoint;
|
||||
}
|
||||
|
||||
void TargetControllerService::removeBreakpoint(TargetBreakpoint breakpoint) const {
|
||||
|
||||
@@ -142,9 +142,16 @@ namespace Services
|
||||
/**
|
||||
* Requests the TargetController to set a breakpoint on the target.
|
||||
*
|
||||
* @param breakpoint
|
||||
* @param address
|
||||
* @param preferredType
|
||||
*
|
||||
* @return
|
||||
* The installed breakpoint.
|
||||
*/
|
||||
void setBreakpoint(Targets::TargetBreakpoint breakpoint) const;
|
||||
Targets::TargetBreakpoint setBreakpoint(
|
||||
Targets::TargetMemoryAddress address,
|
||||
Targets::TargetBreakpoint::Type preferredType = Targets::TargetBreakpoint::Type::HARDWARE
|
||||
) const;
|
||||
|
||||
/**
|
||||
* Requests the TargetController to remove a breakpoint from the target.
|
||||
|
||||
Reference in New Issue
Block a user