Struct gdb_command::GdbCommand

source ·
pub struct GdbCommand<'a> { /* private fields */ }
Expand description

Struct contains information about arguments for gdb to run.

Implementations

Construct GdbCommand from given ExecType.

Arguments
  • type - execution type to run gdb.

Add stdin for executable. You should call this method before using r method.

Arguments
  • file - path to stdin file

Add new gdb command to execute.

Arguments
  • cmd - gdb command parameter (-ex).

Run gdb with provided commands and return raw stdout.

Add command to run program

Arguments
  • file - path to stdin file

Add command to continue execution

Add command to get backtrace (-ex bt)

Add command to get disassembly (-ex ‘x/16i $pc’)

Add command to get registers (-ex ‘i r’)

Add command to get mappings (-ex ‘info proc mappings’)

Add command to get cmd line.

Add command to get environment variables

Add command to get process status

Add command to get info

Break at main

Print lines from source file

Arguments
  • location - lines centered around the line specified by location. If None then location is current line.

Get memory contents (string of hex bytes)

Arguments
  • expr - expression that represents the start memory address.

  • size - size of memory in bytes to get.

Add command to get siginfo

Execute gdb and get result for each command.

Return value.

The return value is a vector of strings for each command executed.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.