-
Notifications
You must be signed in to change notification settings - Fork 82
Fix: librs oops should report location info #292
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
base: main
Are you sure you want to change the base?
Conversation
|
build_prs #292 |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/21052449942. |
|
✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/21052449942. |
lawkai-vivo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semihosting should not enabled when we're not testing.
| #[cfg(not(feature = "std"))] | ||
| #[panic_handler] | ||
| fn oops(info: &core::panic::PanicInfo) -> ! { | ||
| #[cfg(test)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try using #[cfg(debug)] at present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not semihosting, what crate/method rsrt could use now? just need an print, #[cfg(debug)] not work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should work under debug mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should work under debug mode.
Ok, my fault. The cfg has been mistakenly removed. Please update https://github.com/vivoblueos/build/blob/3939793f48f6b39c95434c0bc73d4cf405f02e10/config/BUILD.gn#L20 by adding --cfg ${build_type}.
cd8e3a2 to
d04027e
Compare
|
build_prs #292 vivoblueos/build#51 |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/21061876528. |
|
❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/21061876528. |
|
build_prs #292 vivoblueos/build#51 |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/21062574404. |
|
❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/21062574404. |
d04027e to
395f70b
Compare
|
build_prs #292 vivoblueos/build#51 |
|
Job is started, see https://github.com/vivoblueos/kernel/actions/runs/21170691643. |
|
✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/21170691643. |
395f70b to
b354b56
Compare
No description provided.