Tidying
This commit is contained in:
@@ -61,14 +61,14 @@ namespace Services
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
const Targets::TargetDescriptor& getTargetDescriptor() const;
|
[[nodiscard]] const Targets::TargetDescriptor& getTargetDescriptor() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches the current target state.
|
* Fetches the current target state.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
const Targets::TargetState& getTargetState() const;
|
[[nodiscard]] const Targets::TargetState& getTargetState() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requests the TargetController to halt execution on the target.
|
* Requests the TargetController to halt execution on the target.
|
||||||
@@ -93,7 +93,7 @@ namespace Services
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Targets::TargetRegisterDescriptorAndValuePairs readRegisters(
|
[[nodiscard]] Targets::TargetRegisterDescriptorAndValuePairs readRegisters(
|
||||||
const Targets::TargetRegisterDescriptors& descriptors
|
const Targets::TargetRegisterDescriptors& descriptors
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ namespace Services
|
|||||||
* @param descriptor
|
* @param descriptor
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Targets::TargetMemoryBuffer readRegister(const Targets::TargetRegisterDescriptor& descriptor) const;
|
[[nodiscard]] Targets::TargetMemoryBuffer readRegister(const Targets::TargetRegisterDescriptor& descriptor) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requests the TargetController to write register values to the target.
|
* Requests the TargetController to write register values to the target.
|
||||||
@@ -134,7 +134,7 @@ namespace Services
|
|||||||
* @param excludedAddressRanges
|
* @param excludedAddressRanges
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Targets::TargetMemoryBuffer readMemory(
|
[[nodiscard]] Targets::TargetMemoryBuffer readMemory(
|
||||||
const Targets::TargetAddressSpaceDescriptor& addressSpaceDescriptor,
|
const Targets::TargetAddressSpaceDescriptor& addressSpaceDescriptor,
|
||||||
const Targets::TargetMemorySegmentDescriptor& memorySegmentDescriptor,
|
const Targets::TargetMemorySegmentDescriptor& memorySegmentDescriptor,
|
||||||
Targets::TargetMemoryAddress startAddress,
|
Targets::TargetMemoryAddress startAddress,
|
||||||
@@ -178,7 +178,7 @@ namespace Services
|
|||||||
* @return
|
* @return
|
||||||
* The installed breakpoint.
|
* The installed breakpoint.
|
||||||
*/
|
*/
|
||||||
Targets::TargetBreakpoint setBreakpoint(
|
[[nodiscard]] Targets::TargetBreakpoint setBreakpoint(
|
||||||
Targets::TargetMemoryAddress address,
|
Targets::TargetMemoryAddress address,
|
||||||
Targets::TargetBreakpoint::Type preferredType = Targets::TargetBreakpoint::Type::HARDWARE
|
Targets::TargetBreakpoint::Type preferredType = Targets::TargetBreakpoint::Type::HARDWARE
|
||||||
) const;
|
) const;
|
||||||
@@ -195,7 +195,7 @@ namespace Services
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Targets::TargetMemoryAddress getProgramCounter() const;
|
[[nodiscard]] Targets::TargetMemoryAddress getProgramCounter() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the target's program counter to the given address.
|
* Sets the target's program counter to the given address.
|
||||||
@@ -209,7 +209,7 @@ namespace Services
|
|||||||
*
|
*
|
||||||
* @param padDescriptors
|
* @param padDescriptors
|
||||||
*/
|
*/
|
||||||
Targets::TargetGpioPadDescriptorAndStatePairs getGpioPadStates(
|
[[nodiscard]] Targets::TargetGpioPadDescriptorAndStatePairs getGpioPadStates(
|
||||||
const Targets::TargetPadDescriptors& padDescriptors
|
const Targets::TargetPadDescriptors& padDescriptors
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ namespace Services
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Targets::TargetStackPointer getStackPointer() const;
|
[[nodiscard]] Targets::TargetStackPointer getStackPointer() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the target's stack pointer to the given value.
|
* Sets the target's stack pointer to the given value.
|
||||||
@@ -275,7 +275,7 @@ namespace Services
|
|||||||
|
|
||||||
std::optional<TargetController::AtomicSessionIdType> activeAtomicSessionId = std::nullopt;
|
std::optional<TargetController::AtomicSessionIdType> activeAtomicSessionId = std::nullopt;
|
||||||
|
|
||||||
std::chrono::milliseconds defaultTimeout = std::chrono::milliseconds(60000);
|
std::chrono::milliseconds defaultTimeout = std::chrono::milliseconds{30000};
|
||||||
|
|
||||||
TargetController::AtomicSessionIdType startAtomicSession();
|
TargetController::AtomicSessionIdType startAtomicSession();
|
||||||
void endAtomicSession(TargetController::AtomicSessionIdType sessionId);
|
void endAtomicSession(TargetController::AtomicSessionIdType sessionId);
|
||||||
|
|||||||
Reference in New Issue
Block a user