-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add core::arch::breakpoint
and test
#133726
Conversation
r? @Noratrieb rustbot has assigned @Noratrieb. Use |
Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter cc @rust-lang/miri, @rust-lang/wg-const-eval |
This comment has been minimized.
This comment has been minimized.
f6b34bd
to
70de878
Compare
This comment has been minimized.
This comment has been minimized.
4959ea0
to
5f8cc9a
Compare
This comment has been minimized.
This comment has been minimized.
5f8cc9a
to
1fc2831
Compare
This comment has been minimized.
This comment has been minimized.
1fc2831
to
6d14285
Compare
This comment has been minimized.
This comment has been minimized.
6d14285
to
2018889
Compare
This comment has been minimized.
This comment has been minimized.
2018889
to
7c2bf39
Compare
This comment has been minimized.
This comment has been minimized.
7c2bf39
to
1be35f1
Compare
This comment has been minimized.
This comment has been minimized.
1be35f1
to
87fb6ca
Compare
This comment has been minimized.
This comment has been minimized.
The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
f043ae7
to
afca178
Compare
This comment has been minimized.
This comment has been minimized.
afca178
to
a5c107b
Compare
This comment has been minimized.
This comment has been minimized.
Approved in [ACP 491](rust-lang/libs-team#491). Remove the `unsafe` on `core::intrinsics::breakpoint()`, since it's a safe intrinsic to call and has no prerequisites. (Thanks to @zachs18 for figuring out the `bootstrap`/`not(bootstrap)` logic.)
a5c107b
to
cea0582
Compare
r? @oli-obk |
Add `core::arch::breakpoint` and test Approved in [ACP 491](rust-lang/libs-team#491).
/// normal execution with no debug tooling involved this will not continue executing. | ||
/// | ||
/// - On x86 targets, this produces an `int3` instruction. | ||
/// - On aarch64 targets, this produces a `brk #0xf000` instruction. |
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.
Cranelift emits brk #0
. Should this be changed on the Cranelift side?
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.
@bjorn3 Yes, I think so. Some debuggers on aarch64 recognize brk #0xf000
as a hint to skip past that instruction when resuming.
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.
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#132937 (a release operation synchronizes with an acquire operation) - rust-lang#133681 (improve TagEncoding::Niche docs, sanity check, and UB checks) - rust-lang#133726 (Add `core::arch::breakpoint` and test) - rust-lang#133768 (Remove `generic_associated_types_extended` feature gate) - rust-lang#133811 ([AIX] change AIX default codemodel=large) - rust-lang#133812 (Update wasm-component-ld to 0.5.11) - rust-lang#133813 (compiletest: explain that UI tests are expected not to compile by default) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#133726 - joshtriplett:breakpoint, r=oli-obk Add `core::arch::breakpoint` and test Approved in [ACP 491](rust-lang/libs-team#491).
Approved in ACP 491.