pub struct GdbStubHandler<DL>{
pub machine: MachineAssign<DL>,
/* private fields */
}
Fields§
§machine: MachineAssign<DL>
Implementations§
Source§impl<DL> GdbStubHandler<DL>
impl<DL> GdbStubHandler<DL>
pub fn new(machine: MachineAssign<DL>) -> Self
Source§impl<DL> GdbStubHandler<DL>
impl<DL> GdbStubHandler<DL>
Trait Implementations§
Source§impl<DL> Breakpoints for GdbStubHandler<DL>
impl<DL> Breakpoints for GdbStubHandler<DL>
Source§fn support_sw_breakpoint(&mut self) -> Option<SwBreakpointOps<'_, Self>>
fn support_sw_breakpoint(&mut self) -> Option<SwBreakpointOps<'_, Self>>
Support for setting / removing software breakpoints.
Source§fn support_hw_watchpoint(&mut self) -> Option<HwWatchpointOps<'_, Self>>
fn support_hw_watchpoint(&mut self) -> Option<HwWatchpointOps<'_, Self>>
Support for setting / removing hardware watchpoints.
Source§fn support_hw_breakpoint(
&mut self,
) -> Option<&mut dyn HwBreakpoint<Error = Self::Error, Arch = Self::Arch>>
fn support_hw_breakpoint( &mut self, ) -> Option<&mut dyn HwBreakpoint<Error = Self::Error, Arch = Self::Arch>>
Support for setting / removing hardware breakpoints.
Source§impl<DL> CatchSyscalls for GdbStubHandler<DL>
impl<DL> CatchSyscalls for GdbStubHandler<DL>
Source§fn enable_catch_syscalls(
&mut self,
filter: Option<SyscallNumbers<'_, <Self::Arch as Arch>::Usize>>,
) -> TargetResult<(), Self>
fn enable_catch_syscalls( &mut self, filter: Option<SyscallNumbers<'_, <Self::Arch as Arch>::Usize>>, ) -> TargetResult<(), Self>
Enables catching syscalls from the inferior process. Read more
Source§fn disable_catch_syscalls(&mut self) -> TargetResult<(), Self>
fn disable_catch_syscalls(&mut self) -> TargetResult<(), Self>
Disables catching syscalls from the inferior process.
Source§impl<DL> CoreMachine for GdbStubHandler<DL>
impl<DL> CoreMachine for GdbStubHandler<DL>
type REG = u64
type MEM = GdbStubHandler<DL>
fn pc(&self) -> &Self::REG
fn update_pc(&mut self, pc: Self::REG)
fn commit_pc(&mut self)
fn memory(&self) -> &Self::MEM
fn memory_mut(&mut self) -> &mut Self::MEM
fn registers(&self) -> &[Self::REG]
fn set_register(&mut self, idx: usize, value: Self::REG)
fn version(&self) -> u32
fn isa(&self) -> u8
Source§impl<DL> HwWatchpoint for GdbStubHandler<DL>
impl<DL> HwWatchpoint for GdbStubHandler<DL>
Source§impl<DL> Machine for GdbStubHandler<DL>
impl<DL> Machine for GdbStubHandler<DL>
Source§impl<DL> Memory for GdbStubHandler<DL>
impl<DL> Memory for GdbStubHandler<DL>
type REG = u64
fn new() -> Self
fn new_with_memory(_: usize) -> Self
fn memory_size(&self) -> usize
fn load_bytes(&mut self, addr: u64, size: u64) -> Result<Bytes, Error>
fn lr(&self) -> &<Self as Memory>::REG
fn set_lr(&mut self, addr: &<Self as Memory>::REG)
fn init_pages( &mut self, addr: u64, size: u64, flags: u8, source: Option<Bytes>, offset_from_addr: u64, ) -> Result<(), Error>
fn fetch_flag(&mut self, page: u64) -> Result<u8, Error>
fn set_flag(&mut self, page: u64, flag: u8) -> Result<(), Error>
fn clear_flag(&mut self, page: u64, flag: u8) -> Result<(), Error>
fn store_byte(&mut self, addr: u64, size: u64, value: u8) -> Result<(), Error>
fn store_bytes(&mut self, addr: u64, value: &[u8]) -> Result<(), Error>
fn execute_load16(&mut self, addr: u64) -> Result<u16, Error>
fn execute_load32(&mut self, addr: u64) -> Result<u32, Error>
fn load8(&mut self, addr: &Self::REG) -> Result<Self::REG, Error>
fn load16(&mut self, addr: &Self::REG) -> Result<Self::REG, Error>
fn load32(&mut self, addr: &Self::REG) -> Result<Self::REG, Error>
fn load64(&mut self, addr: &Self::REG) -> Result<Self::REG, Error>
fn store8(&mut self, addr: &Self::REG, value: &Self::REG) -> Result<(), Error>
fn store16(&mut self, addr: &Self::REG, value: &Self::REG) -> Result<(), Error>
fn store32(&mut self, addr: &Self::REG, value: &Self::REG) -> Result<(), Error>
fn store64(&mut self, addr: &Self::REG, value: &Self::REG) -> Result<(), Error>
fn memory_pages(&self) -> usize
Source§impl<DL> SingleRegisterAccess<()> for GdbStubHandler<DL>
impl<DL> SingleRegisterAccess<()> for GdbStubHandler<DL>
Source§impl<DL> SingleThreadBase for GdbStubHandler<DL>
impl<DL> SingleThreadBase for GdbStubHandler<DL>
Source§fn read_registers(
&mut self,
regs: &mut <Self::Arch as Arch>::Registers,
) -> TargetResult<(), Self>
fn read_registers( &mut self, regs: &mut <Self::Arch as Arch>::Registers, ) -> TargetResult<(), Self>
Read the target’s registers.
Source§fn write_registers(
&mut self,
regs: &<Self::Arch as Arch>::Registers,
) -> TargetResult<(), Self>
fn write_registers( &mut self, regs: &<Self::Arch as Arch>::Registers, ) -> TargetResult<(), Self>
Write the target’s registers.
Source§fn read_addrs(
&mut self,
start_addr: <Self::Arch as Arch>::Usize,
data: &mut [u8],
) -> TargetResult<usize, Self>
fn read_addrs( &mut self, start_addr: <Self::Arch as Arch>::Usize, data: &mut [u8], ) -> TargetResult<usize, Self>
Read bytes from the specified address range and return the number of
bytes that were read. Read more
Source§fn write_addrs(
&mut self,
start_addr: <Self::Arch as Arch>::Usize,
data: &[u8],
) -> TargetResult<(), Self>
fn write_addrs( &mut self, start_addr: <Self::Arch as Arch>::Usize, data: &[u8], ) -> TargetResult<(), Self>
Write bytes to the specified address range. Read more
Source§fn support_single_register_access(
&mut self,
) -> Option<SingleRegisterAccessOps<'_, (), Self>>
fn support_single_register_access( &mut self, ) -> Option<SingleRegisterAccessOps<'_, (), Self>>
Support for single-register access.
See
SingleRegisterAccess
for more details. Read moreSource§fn support_resume(&mut self) -> Option<SingleThreadResumeOps<'_, Self>>
fn support_resume(&mut self) -> Option<SingleThreadResumeOps<'_, Self>>
Support for resuming the target (e.g: via
continue
or step
)Source§impl<DL> SingleThreadRangeStepping for GdbStubHandler<DL>
impl<DL> SingleThreadRangeStepping for GdbStubHandler<DL>
Source§fn resume_range_step(&mut self, start: u64, end: u64) -> Result<(), Self::Error>
fn resume_range_step(&mut self, start: u64, end: u64) -> Result<(), Self::Error>
Range step the target. Read more
Source§impl<DL> SingleThreadResume for GdbStubHandler<DL>
impl<DL> SingleThreadResume for GdbStubHandler<DL>
Source§fn resume(&mut self, signal: Option<Signal>) -> Result<(), Self::Error>
fn resume(&mut self, signal: Option<Signal>) -> Result<(), Self::Error>
Resume execution on the target. Read more
Source§fn support_single_step(&mut self) -> Option<SingleThreadSingleStepOps<'_, Self>>
fn support_single_step(&mut self) -> Option<SingleThreadSingleStepOps<'_, Self>>
Support for optimized single stepping.
Source§fn support_range_step(
&mut self,
) -> Option<SingleThreadRangeSteppingOps<'_, Self>>
fn support_range_step( &mut self, ) -> Option<SingleThreadRangeSteppingOps<'_, Self>>
Support for optimized range stepping.
Source§fn support_reverse_step(
&mut self,
) -> Option<&mut dyn ReverseStep<(), Error = Self::Error, Arch = Self::Arch>>
fn support_reverse_step( &mut self, ) -> Option<&mut dyn ReverseStep<(), Error = Self::Error, Arch = Self::Arch>>
Support for reverse stepping a target.
Source§fn support_reverse_cont(
&mut self,
) -> Option<&mut dyn ReverseCont<(), Error = Self::Error, Arch = Self::Arch>>
fn support_reverse_cont( &mut self, ) -> Option<&mut dyn ReverseCont<(), Error = Self::Error, Arch = Self::Arch>>
Support for reverse continuing a target.
Source§impl<DL> SingleThreadSingleStep for GdbStubHandler<DL>
impl<DL> SingleThreadSingleStep for GdbStubHandler<DL>
Source§impl<DL> SwBreakpoint for GdbStubHandler<DL>
impl<DL> SwBreakpoint for GdbStubHandler<DL>
Source§fn add_sw_breakpoint(
&mut self,
addr: <Self::Arch as Arch>::Usize,
_kind: <Self::Arch as Arch>::BreakpointKind,
) -> TargetResult<bool, Self>
fn add_sw_breakpoint( &mut self, addr: <Self::Arch as Arch>::Usize, _kind: <Self::Arch as Arch>::BreakpointKind, ) -> TargetResult<bool, Self>
Add a new software breakpoint. Read more
Source§fn remove_sw_breakpoint(
&mut self,
addr: <Self::Arch as Arch>::Usize,
_kind: <Self::Arch as Arch>::BreakpointKind,
) -> TargetResult<bool, Self>
fn remove_sw_breakpoint( &mut self, addr: <Self::Arch as Arch>::Usize, _kind: <Self::Arch as Arch>::BreakpointKind, ) -> TargetResult<bool, Self>
Remove an existing software breakpoint. Read more
Source§impl<DL> Target for GdbStubHandler<DL>
impl<DL> Target for GdbStubHandler<DL>
Source§fn base_ops(&mut self) -> BaseOps<'_, Self::Arch, Self::Error>
fn base_ops(&mut self) -> BaseOps<'_, Self::Arch, Self::Error>
Base operations such as reading/writing from memory/registers,
stopping/resuming the target, etc…. Read more
Source§fn support_breakpoints(&mut self) -> Option<BreakpointsOps<'_, Self>>
fn support_breakpoints(&mut self) -> Option<BreakpointsOps<'_, Self>>
Support for setting / removing breakpoints.
Source§fn support_catch_syscalls(&mut self) -> Option<CatchSyscallsOps<'_, Self>>
fn support_catch_syscalls(&mut self) -> Option<CatchSyscallsOps<'_, Self>>
Support for setting / removing syscall catchpoints.
Source§fn guard_rail_implicit_sw_breakpoints(&self) -> bool
fn guard_rail_implicit_sw_breakpoints(&self) -> bool
If the target supports resumption, but hasn’t implemented explicit
support for software breakpoints (via
SwBreakpoints
), notify the user
that the GDB client may set “implicit” software breakpoints by
rewriting the target’s instruction stream. Read moreSource§fn use_no_ack_mode(&self) -> bool
fn use_no_ack_mode(&self) -> bool
Enable/disable support for activating “no ack mode”. Read more
Source§fn use_x_upcase_packet(&self) -> bool
fn use_x_upcase_packet(&self) -> bool
Enable/disable using the more efficient
X
packet to write to target
memory (as opposed to the basic M
packet). Read moreSource§fn use_resume_stub(&self) -> bool
fn use_resume_stub(&self) -> bool
Whether
gdbstub
should provide a “stub” resume
implementation on
targets without support for resumption. Read moreSource§fn use_rle(&self) -> bool
fn use_rle(&self) -> bool
Enable/Disable the use of run-length encoding on outgoing packets. Read more
Source§fn use_target_description_xml(&self) -> bool
fn use_target_description_xml(&self) -> bool
Whether to send a target description XML to the client. Read more
Source§fn use_lldb_register_info(&self) -> bool
fn use_lldb_register_info(&self) -> bool
(LLDB extension) Whether to send register information to the client. Read more
Source§fn support_monitor_cmd(
&mut self,
) -> Option<&mut dyn MonitorCmd<Error = Self::Error, Arch = Self::Arch>>
fn support_monitor_cmd( &mut self, ) -> Option<&mut dyn MonitorCmd<Error = Self::Error, Arch = Self::Arch>>
Support for handling custom GDB
monitor
commands.Source§fn support_extended_mode(
&mut self,
) -> Option<&mut dyn ExtendedMode<Error = Self::Error, Arch = Self::Arch>>
fn support_extended_mode( &mut self, ) -> Option<&mut dyn ExtendedMode<Error = Self::Error, Arch = Self::Arch>>
Support for Extended Mode operations.
Source§fn support_section_offsets(
&mut self,
) -> Option<&mut dyn SectionOffsets<Error = Self::Error, Arch = Self::Arch>>
fn support_section_offsets( &mut self, ) -> Option<&mut dyn SectionOffsets<Error = Self::Error, Arch = Self::Arch>>
Support for handling requests to get the target’s current section (or
segment) offsets.
Source§fn support_tracepoints(
&mut self,
) -> Option<&mut dyn Tracepoints<Error = Self::Error, Arch = Self::Arch>>
fn support_tracepoints( &mut self, ) -> Option<&mut dyn Tracepoints<Error = Self::Error, Arch = Self::Arch>>
Support for setting / removing tracepoints.
Source§fn support_target_description_xml_override(
&mut self,
) -> Option<&mut dyn TargetDescriptionXmlOverride<Error = Self::Error, Arch = Self::Arch>>
fn support_target_description_xml_override( &mut self, ) -> Option<&mut dyn TargetDescriptionXmlOverride<Error = Self::Error, Arch = Self::Arch>>
Support for overriding the target description XML specified by
Target::Arch
.Source§fn support_lldb_register_info_override(
&mut self,
) -> Option<&mut dyn LldbRegisterInfoOverride<Error = Self::Error, Arch = Self::Arch>>
fn support_lldb_register_info_override( &mut self, ) -> Option<&mut dyn LldbRegisterInfoOverride<Error = Self::Error, Arch = Self::Arch>>
(LLDB extension) Support for overriding the register info specified by
Target::Arch
.Source§fn support_memory_map(
&mut self,
) -> Option<&mut dyn MemoryMap<Error = Self::Error, Arch = Self::Arch>>
fn support_memory_map( &mut self, ) -> Option<&mut dyn MemoryMap<Error = Self::Error, Arch = Self::Arch>>
Support for reading the target’s memory map.
Source§fn support_host_io(
&mut self,
) -> Option<&mut dyn HostIo<Error = Self::Error, Arch = Self::Arch>>
fn support_host_io( &mut self, ) -> Option<&mut dyn HostIo<Error = Self::Error, Arch = Self::Arch>>
Support for Host I/O operations.
Source§fn support_exec_file(
&mut self,
) -> Option<&mut dyn ExecFile<Error = Self::Error, Arch = Self::Arch>>
fn support_exec_file( &mut self, ) -> Option<&mut dyn ExecFile<Error = Self::Error, Arch = Self::Arch>>
Support for reading the current exec-file.
Source§fn support_auxv(
&mut self,
) -> Option<&mut dyn Auxv<Error = Self::Error, Arch = Self::Arch>>
fn support_auxv( &mut self, ) -> Option<&mut dyn Auxv<Error = Self::Error, Arch = Self::Arch>>
Support for reading the target’s Auxillary Vector.
Source§fn support_libraries_svr4(
&mut self,
) -> Option<&mut dyn LibrariesSvr4<Error = Self::Error, Arch = Self::Arch>>
fn support_libraries_svr4( &mut self, ) -> Option<&mut dyn LibrariesSvr4<Error = Self::Error, Arch = Self::Arch>>
Support for reading a list of libraries for SVR4 (System-V/Unix)
platforms.
Auto Trait Implementations§
impl<DL> Freeze for GdbStubHandler<DL>
impl<DL> !RefUnwindSafe for GdbStubHandler<DL>
impl<DL> Send for GdbStubHandler<DL>
impl<DL> Sync for GdbStubHandler<DL>
impl<DL> Unpin for GdbStubHandler<DL>
impl<DL> !UnwindSafe for GdbStubHandler<DL>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more