Open
Conversation
Use riscv's code generation rules for stack backtraces. 1. Compile the source code in the first pass to generate an executable file, and use the nm tool to extract symbol information 2. The second pass compiles the source code to link the symbolic information into the executable file. Points to note: 1. backtrace needs to support alloc 2. If the kernel panics before alloc initialization, it will cause an error
Member
|
Very Good! @Godones |
lythesia
added a commit
to lythesia/rcore-os
that referenced
this pull request
Dec 13, 2024
thanks [PR](rcore-os/rCore-Tutorial-v3#105) by Godones
lythesia
added a commit
to lythesia/rcore-os
that referenced
this pull request
Dec 13, 2024
thanks rcore-os/rCore-Tutorial-v3#105 by Godones
|
I changed a little based on latest tracer and tried (related code), it works, but may not be accurate enough if functions are inlined ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A simple test looks like this: