Nothing Special   »   [go: up one dir, main page]

Skip to content
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

Prefer __builtin_debugtrap if compiler is clang / clang-based #874

Open
nolange opened this issue Oct 29, 2024 · 0 comments
Open

Prefer __builtin_debugtrap if compiler is clang / clang-based #874

nolange opened this issue Oct 29, 2024 · 0 comments

Comments

@nolange
Copy link
nolange commented Oct 29, 2024

Clang offers a __builtin_debugtrap that seems to be available forever (tested with clang 3.3), and should be usable everywhere,
this should be preferred instead of using raise(SIGTRAP) for ARM and others.

Affected code is in

#ifndef DOCTEST_BREAK_INTO_DEBUGGER

Some references on breakpoints are referenced in std::breakpoint, might be worth watching the implementations of C++ libraries, the standard PR p2546r5 links this as example implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant