pub struct GdbBuilder { /* private fields */ }Implementations§
Source§impl GdbBuilder
Customize the gdb process we spawn.
impl GdbBuilder
Customize the gdb process we spawn.
By default rust is true and the timeout is five seconds.
If you need even more control you can spawn the process yourself and pass it
to Gdb::new.
let gdb = GdbBuilder::rr("my_trace_dir")
.rust(false)
.timeout(Duration::from_secs(10))
.spawn()?;Sourcepub fn new(target: impl Into<Utf8PathBuf>) -> Self
pub fn new(target: impl Into<Utf8PathBuf>) -> Self
A standard gdb session, where target is the path to the program to
debug
Sourcepub fn rr(trace_dir: impl Into<Utf8PathBuf>) -> Self
pub fn rr(trace_dir: impl Into<Utf8PathBuf>) -> Self
Replay a recording using the [time-travelling debugger rr][rr-home]
Sourcepub fn rd(trace_dir: impl Into<Utf8PathBuf>) -> Self
pub fn rd(trace_dir: impl Into<Utf8PathBuf>) -> Self
Replay a recording using rd, the Rust port of the time-travelling debugger rr.
At the time this was written (May 2021) had released the first alpha version.
Sourcepub fn timeout(&mut self, timeout: Duration) -> &mut Self
pub fn timeout(&mut self, timeout: Duration) -> &mut Self
The default timeout.
Some methods accept an optional timeout, which will be used instead if specified. The timeout is per request to gdb, not per method. Some methods make multiple requests to gdb.
Trait Implementations§
Source§impl Clone for GdbBuilder
impl Clone for GdbBuilder
Source§fn clone(&self) -> GdbBuilder
fn clone(&self) -> GdbBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GdbBuilder
impl Debug for GdbBuilder
Source§impl PartialEq for GdbBuilder
impl PartialEq for GdbBuilder
impl Eq for GdbBuilder
impl StructuralPartialEq for GdbBuilder
Auto Trait Implementations§
impl Freeze for GdbBuilder
impl RefUnwindSafe for GdbBuilder
impl Send for GdbBuilder
impl Sync for GdbBuilder
impl Unpin for GdbBuilder
impl UnwindSafe for GdbBuilder
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