This commit is contained in:
nora 2023-06-13 14:29:53 +02:00
parent d1e561c665
commit 598ddadc6b
4 changed files with 40 additions and 16 deletions

View file

@ -30,9 +30,9 @@ extern "C" {
#[derive(Debug, Clone, Copy)]
pub struct DwarfInfo {
/// The text segment
map: *const [u8],
pub(super) map: *const [u8],
/// PT_GNU_EH_FRAME
dwarf: *const u8,
pub(super) dwarf: *const u8,
}
pub fn dwarf_info(addr: *const ffi::c_void) -> Option<DwarfInfo> {