Parse short backtraces out of debuginfo #693
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This implements the runtime side of rust-lang/compiler-team#818.
find_frames
for iterating over aLookupContinuation
search_object_map
consistent across all platforms. Backtraces are inherently platform specific, but let's not make it any harder on ourselves than we have to.pub fn short_backtraces() -> enum { ThisFrameOnly, Start, End }
APIgimli::UnitRef::shared_attrs
API to determine whether a given frame has a short backtrace. This, for now, requires a git dependency on gimli.Note that this currently does not work on MacOS. I do not have a Mac to test this; someone lent me theirs and I tracked it down to
cx.find_dwarf_and_unit
returningNone
, but I have not had the time or resources to narrow it down further than that.