forked from libbpf/blazesym
-
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.
Factor out R typedef into dwarf::reader module
This change moves the R typedef and associated functionality into the newly introduced dwarf::reader module. Signed-off-by: Daniel Müller <deso@posteo.net>
- Loading branch information
Showing
3 changed files
with
13 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
mod parser; | ||
mod reader; | ||
mod resolver; | ||
|
||
pub(crate) use self::resolver::DwarfResolver; |
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,10 @@ | ||
use gimli::EndianSlice; | ||
|
||
#[cfg(target_endian = "little")] | ||
type Endianess = gimli::LittleEndian; | ||
#[cfg(target_endian = "big")] | ||
type Endianess = gimli::BigEndian; | ||
|
||
/// The gimli reader type we currently use. Could be made generic if | ||
/// need be, but we keep things simple while we can. | ||
pub(crate) type R<'dat> = EndianSlice<'dat, Endianess>; |