Comments (13)
Those files have neither DW_AT_high_pc
nor DW_AT_ranges
attributes on their DW_TAG_compile_unit
entries as required by the DWARF spec, so we're ignoring them. They do have a valid .debug_aranges
though, so maybe the best fix would be to start using that.
from addr2line.
I'm not able to run it right now to test, but something like echo 0x1234 | addr2line -e <path-to-dsym>
.
from addr2line.
Not sure what you mean by "use it alone". There's sample usage in the example, the tests and also in the backtrace-rs crate.
from addr2line.
Like using addr2line. In terminal.
from addr2line.
You'll need to install rust, checkout a copy of the addr2line source code, and build the example with cargo build --examples --release
. The binary will be at target/release/examples/addr2line
.
from addr2line.
Does this tool support dsym?
from addr2line.
Yes, but you need to specify the dsym on the command line instead of the executable.
from addr2line.
thanks.
How to do it?
use --help, don't find the relevant information.
from addr2line.
thanks. It's work well.
from addr2line.
21:05:03 › echo 0x0000b1e7 | ./addr2line -s -i -f -p -a -e /Users/xiejunyi/Desktop/atosl/atosl/test/res/CrashTest3Dwarf.thin
0x000000000000b1e7: -[QDCViewController sendCrash:] ??:0
Is there a problem with the line number and file name?
from addr2line.
Not sure, I can look into it later. I assume this is from https://github.com/dechaoqiu/atosl/tree/master/test/res. Does the x86_64 file work? Maybe we are missing something specific to arm.
from addr2line.
yes. It's from there. x86_64 file:
echo 0x00000001000010a0 | ./addr2line -s -i -f -p -a -e /Users/xiejunyi/Desktop/atosl/atosl/test/res/TestMac1.thin
0x00000001000010a0: -[QDCAppDelegate applicationDidFinishLaunching:] ??:0
from addr2line.
Fixed in #200
from addr2line.
Related Issues (20)
- Ability to shrink the library? HOT 4
- `Context` is not `Send` anymore HOT 10
- Add Line to Address Functionality HOT 2
- Broken link in Readme HOT 1
- Leftover Travis CI references
- osx binary HOT 3
- empty output '??:?' HOT 2
- Duplicated `comp-dir` HOT 1
- Consider switching from memmap crate dependency
- Promote the CLI example to a `bin` crate HOT 2
- No line information found in jitted-1234-56.so files generated by perf inject --jit HOT 5
- Can't resolve libc symbol - which is found by C addr2line HOT 4
- New release HOT 3
- Remove `Context::new` HOT 1
- Tests are failing with nightly rust due to packed debuginfo HOT 4
- Errors when parsing DWARF from Wasm objects HOT 20
- Broken with clang-16 debug info on Linux HOT 2
- How to locate a symbol using this crate? HOT 4
- There is a bug when ```find_location_range``` is used to parse an relocatable object file. HOT 14
- Fails consistently with "failed to process type: 68 [Numerical result out of range]" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addr2line.