-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Can't set breakpoints on rust_panic. #49013
Copy link
Copy link
Closed
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
When debugging a rust program, it is very useful to be able to set breakpoints on
rust_panic, however this stopped working at some point. gdb cannot find a rust_panic symbol to break on.Using
nmI can see that there is a symbolrust_panic.llvm.5A8AA348in the debug binary I am currently looking at, with the 5A8AA348 part varying from computer to computer (I suppose it's related to the llvm or compiler version).Setting a breakpoint on
rust_panic.llvm.5A8AA348works, but it's quite awful to have to look for symbols every time a panic needs to be investigated.Tested with:
Looks like it got fixed at some point before rustc 1.26.0-nightly (2789b06 2018-03-06), butit is currently broken on stable.