forked from daniel5151/gdbstub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for this packet allows the stub to report section offsets back to gdb so that debug symbols are resolved to the correct addresses if the target performs any relocations
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use super::prelude::*; | ||
|
||
#[derive(PartialEq, Eq, Debug)] | ||
pub struct qOffsets; | ||
|
||
impl<'a> ParseCommand<'a> for qOffsets { | ||
fn from_packet(buf: PacketBuf<'a>) -> Option<Self> { | ||
if !buf.into_body().is_empty() { | ||
return None; | ||
} | ||
Some(qOffsets) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters