You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like all compilers GCC 4.x+, clang 3+?, MSVC 2015+ (except for ARM, where it's MSVC 2018+) do support __builtin_debugtrap and generate, what looks like, a viable asm.
@jimon, I just played around with godbolt again and I'm pretty sure of the compiler it supports, __builtin_debugtrap only works on x86-64 clang.
If you see something like call __builtin_debugtrap, or bl __builtin_debugtrap in the output, where the compiler generates a call to an external function instead of the desired breakpoint instruction, you should interpret that as __builtin_debugtrap not working.
It seems like all compilers GCC 4.x+, clang 3+?, MSVC 2015+ (except for ARM, where it's MSVC 2018+) do support
__builtin_debugtrap
and generate, what looks like, a viable asm.I'm trying https://go.godbolt.org/ with:
And it seems to work in vast majority of cases.
Do you think it is a viable solution to use?
The text was updated successfully, but these errors were encountered: