Giter Site home page Giter Site logo

Comments (5)

Tiwalun avatar Tiwalun commented on June 24, 2024

That seems like an issue with rustc or defmt, both of which are not handled by this project. If debug info is missing, which seems to be the case based on the size of the binary, there is nothing we can do.

The Rust project is probably the place to ask for help.

from probe-rs.

Yatekii avatar Yatekii commented on June 24, 2024

Is the debug info on linux split on that nightly maybe? I cannot explain the drop otherwise.

from probe-rs.

ia0 avatar ia0 commented on June 24, 2024

I also thought it was split-debuginfo and tested it (and forgot to mention in the issue), but that's not it. However, I ended up figuring out what's going on. It's rust-lang/cargo#13257 meant to fix rust-lang/cargo#4122 which seems to only check whether debug is enabled at cargo level and not through RUSTFLAGS, so cargo was stripping debuginfo thinking the user didn't want debug. I'm fixing this in google/wasefire#499.

The current hint "compile your program with debug = 2" is technically correct when done in the Cargo.toml. It simply is not enough when using RUSTFLAGS, where -C debuginfo=2 -C strip=none is actually needed.

Thanks for the rubberducking!

from probe-rs.

bugadani avatar bugadani commented on June 24, 2024

Well the hint is debug = 2 not -C debuginfo=2 ;)

from probe-rs.

ia0 avatar ia0 commented on June 24, 2024

Yes that's why it's technically correct :-)

(Writing "enable debug" would not have been technically correct, it needs to be "enable debug in cargo".)

from probe-rs.

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.