-
-
Notifications
You must be signed in to change notification settings - Fork 262
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
ldc2 --checkaction=halt produces same binary as --checkaction=D #3430
Comments
Thx for the report. Looks like there's no DMD test for this... |
@kinke Looks like for ARM 8813f0e emits "undefined" TRAP instruction (0xDEFE) from LLVM's __builtin_trap. This instruction causes immediate jump to But Looks like ARM isn't have appropriate "Halt and Catch Fire" instruction? |
The fix uses the |
debugtrap looks as more appropriate at least for ARM - it adds BKPT instruction instead of undefined "TRAP". From ARM manual: While in debug state, the processor behaves as follows:
|
Then please play around with it and see if it fits your needs. If it does, open a PR to discuss whether this should be the default, only used with Edit: I've only found http://llvm.1065342.n5.nabble.com/Trap-instruction-for-ARMv7-and-Thumb-td59521.html wrt. this. |
I’m afraid to touch ldc sources and don’t know how to test different platforms. I will just create a Issue ticket. |
You can trivially substitute Line 1688 in 9a92488
Yes, it's really that simple. |
I am on linux |
So what? Azure builds all packages. |
Ok, will try it |
(I want to halt if assertion occured.)
Tried on x86_64 and ARM32
Code for check:
The text was updated successfully, but these errors were encountered: