Refactored WCH-Link/RISC-V implementation to accommodate SW breakpoints and reduce complexity

This commit is contained in:
Nav
2024-11-24 19:32:00 +00:00
parent dc87b92fb2
commit 7c647caa67
21 changed files with 500 additions and 560 deletions

View File

@@ -17,10 +17,11 @@ namespace DebugToolDrivers::TargetInterfaces::RiscV
class RiscVDebugInterface
{
public:
virtual void init() = 0;
virtual void activate() = 0;
virtual void deactivate() = 0;
virtual std::string getDeviceId() = 0;
virtual Targets::TargetExecutionState getExecutionState() = 0;
virtual void stop() = 0;
@@ -54,5 +55,9 @@ namespace DebugToolDrivers::TargetInterfaces::RiscV
Targets::TargetMemoryAddress startAddress,
Targets::TargetMemoryBufferSpan buffer
) = 0;
virtual void eraseMemory(
const Targets::TargetAddressSpaceDescriptor& addressSpaceDescriptor,
const Targets::TargetMemorySegmentDescriptor& memorySegmentDescriptor
) = 0;
};
}