GithubHelp home page GithubHelp logo

locate-dwarf's People

Contributors

atouchet avatar bjorn3 avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar dvc94ch avatar fitzgen avatar luser avatar mstange avatar philipc avatar schultetwin1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

locate-dwarf's Issues

Notes...

Useful info:

Looks like we want the contents of the .gnu_debuglink section, and we probably want to validate the CRC too. It seems like maybe we can call out to the find-debuginfo.sh script?

For MacOS, there doesn't seem to be a section linking to the proper .dSYM bundle. It seems like dsymutil generates these bundles. Perhaps we will just have to rely on the .dSYM bundle being where we expect it to be?

Support for PE -> PDB lookup

I realize this crate is called "locate-dwarf" but I'd love to add support for finding a PDB based on a PE. Is that something you'd be open to?

Panic when used on binaries that are in a "target" directory without deps / examples subdirectories

locate-dwarf/src/lib.rs

Lines 60 to 68 in 9824c52

break; // target_dir = ???/target/<channel>
}
}
// Check every entry in <target_channel_dir>/deps and <target_channel_dir>/examples
for dir in fs::read_dir(target_channel_dir.join("deps"))
.unwrap()
.chain(fs::read_dir(target_channel_dir.join("examples")).unwrap())
{

When running on a file with the path "/Users/mstange/code/socc-pair/target/bin-deps/bin/minidump-stackwalk", we set target_channel_dir to "/Users/mstange/code/socc-pair/target/bin-deps/" and then panic because this directory does not have "deps" or "examples" subdirectories.

Bring this crate up to a releaseable state

Here's a list I dropped in the initial PR:

  • Add some tests
  • Add crate-level docs
  • Flesh out the README
  • Add a LICENSE file / choose a license (whatever gimli is using is fine)
  • Add some CI
  • Sort out fork of object crate

anyhow Errors make it difficult to use this crate

I'm trying to integrate locate-dwarf into my own crate but the usage of anyhow has made it difficult for me to make decisions based on the errors returned. For example, I want to take a different action if an io error occurred in locate_debug_symbols versus if there is no debug pointer to be found.

I'd be willing to change this crate to use thiserror if you are open to it?

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.