GithubHelp home page GithubHelp logo

Use .debug_aranges about addr2line HOT 13 CLOSED

gimli-rs avatar gimli-rs commented on June 25, 2024
Use .debug_aranges

from addr2line.

Comments (13)

philipc avatar philipc commented on June 25, 2024 2

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.

philipc avatar philipc commented on June 25, 2024 1

I'm not able to run it right now to test, but something like echo 0x1234 | addr2line -e <path-to-dsym>.

from addr2line.

philipc avatar philipc commented on June 25, 2024

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.

JunyiXie avatar JunyiXie commented on June 25, 2024

Like using addr2line. In terminal.

from addr2line.

philipc avatar philipc commented on June 25, 2024

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.

JunyiXie avatar JunyiXie commented on June 25, 2024

Does this tool support dsym?

from addr2line.

philipc avatar philipc commented on June 25, 2024

Yes, but you need to specify the dsym on the command line instead of the executable.

from addr2line.

JunyiXie avatar JunyiXie commented on June 25, 2024

thanks.
How to do it?
use --help, don't find the relevant information.

from addr2line.

JunyiXie avatar JunyiXie commented on June 25, 2024

thanks. It's work well.

from addr2line.

JunyiXie avatar JunyiXie commented on June 25, 2024
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.

philipc avatar philipc commented on June 25, 2024

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.

JunyiXie avatar JunyiXie commented on June 25, 2024

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.

philipc avatar philipc commented on June 25, 2024

Fixed in #200

from addr2line.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.