[Bug c/84595] Add __builtin_break() built-in for a breakpointing mechanism
segher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 9 16:33:13 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84595
--- Comment #12 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to H. Peter Anvin from comment #9)
> How is this different from raise(SIGTRAP);?
It does an architecture-specific trap instruction, not a SIGTRAP signal.
The former is useful even if you do not have an OS (or *are* the OS), for
example.
More information about the Gcc-bugs
mailing list