-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic!() calls in stubs could be made easier to debug #2
Comments
Hm. What do you get for I'm also surprised that the |
Sorry, meant to add that detail: |
And... yes, I was also surprised about not having additional information. |
Buh. I'll see what that address correlates to in the DWARF line number tables. addr2line should be using them correctly but that sure sounds bogus. |
Currently, stubs will call
panic!()
without an argument to cut down on ROM size. This is sensible, but in running into #1, the failure was in fact difficult to debug. Here is the panic from #1 as observed:There's a Humility issue here in that the empty
panic!()
string isn't handled particularly well -- but it's also not overly clear from the stack trace what has happened. One way to achieve the desired results with respect to ROM but also make it much clearer as to the root cause is to inject a frame specific to the error, e.g.:This results in a much clearer stack:
The text was updated successfully, but these errors were encountered: