-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract Symbol address #1
Comments
Yes, it absolutely is. I have used CoreSymbolication do that in the past. |
@mattmassicotte Sorry for the dumb question, but is it visible in the swift wrapper? |
You should be able to create a But you are bringing up a good point that perhaps some more documentation would be useful... |
My understanding was that when I get a crash report, in my case a MXCrashDiagnostic, I just read the load address So far so good, I loaded the dwarf in Symbolicator, going through, but there is no address? for symbolicator in symbolicators {
for owner in symbolicator.symbolOwners {
owner.enumerateSymbols { symbol in
symbol.enumerateSoureInfo { info in
print("\(owner.baseAddress):\(symbol.name) -- \(info.sanitizedFilePath):\(info.lineNumber)")
}
}
}
} And with a |
Ahhh yes, you need to consult the |
Great thank you! I did not know it could be a range. After reviewing the DWARF doc it's clear https://dwarfstd.org/doc/DWARF5.pdf, page 51:
So the first address of the range is the DW_AT_low_pc aka the address of the symbol |
Glad you got it figured out! I'm going to keep this issue open to cover adding a little documentation on how to use this. |
Is it possible to extract the symbol address from the DWARF?
It could be a really useful function for symbolicating.
The text was updated successfully, but these errors were encountered: