C++ Logo

sg15

Advanced search

Re: [SG15] breakpoint and is_debugger_present proposals.

From: Ben Craig <ben.craig_at_[hidden]>
Date: Tue, 4 Jan 2022 15:04:32 +0000
IMO, we need a function that is an unconditional breakpoint, similar to what the various compile builtins already provide. This could be in addition to the conditional breakpoint. The conditional breakpoint can be built from the unconditional breakpoint + is_debugger_present, so we should provide the lower level building block.

My personal preference is that the unconditional breakpoint gets the “good” name of std::breakpoint, but I can live with the conditional breakpoint getting the good name.

From: SG15 <sg15-bounces_at_[hidden]> On Behalf Of René Ferdinand Rivera Morell via SG15
Sent: Monday, January 3, 2022 8:03 AM
To: sg15_at_[hidden]
Cc: René Ferdinand Rivera Morell <grafikrobot_at_[hidden]>
Subject: [EXTERNAL] Re: [SG15] breakpoint and is_debugger_present proposals.

On Mon, Jan 3, 2022 at 12:22 AM Daniela Engert via SG15 <sg15_at_[hidden]<mailto:sg15_at_[hidden]>> wrote:
Am 03.01.2022 um 04:30 schrieb René Ferdinand Rivera Morell via SG15:
I just posted for review two tooling related proposals:

* https://wg21.link/P2514R0<https://urldefense.com/v3/__https:/wg21.link/P2514R0__;!!FbZ0ZwI3Qg!6_j0JRAKq4oEYMtTXV__u7fJx0Hrlkum5lKzDd1Z3Ru3cqYQENYJgBmF-F7x$> -- std::breakpoint
* https://wg21.link/P2514R0<https://urldefense.com/v3/__https:/wg21.link/P2514R0__;!!FbZ0ZwI3Qg!6_j0JRAKq4oEYMtTXV__u7fJx0Hrlkum5lKzDd1Z3Ru3cqYQENYJgBmF-F7x$> -- std::is_debugger_present


René, was this meant to be the same link?

LOL, indeed.. It should be:

* https://wg21.link/P2514R0<https://urldefense.com/v3/__https:/wg21.link/P2514R0__;!!FbZ0ZwI3Qg!6_j0JRAKq4oEYMtTXV__u7fJx0Hrlkum5lKzDd1Z3Ru3cqYQENYJgBmF-F7x$> -- std::breakpoint
* https://wg21.link/P2515R0<https://urldefense.com/v3/__https:/wg21.link/P2515R0__;!!FbZ0ZwI3Qg!6_j0JRAKq4oEYMtTXV__u7fJx0Hrlkum5lKzDd1Z3Ru3cqYQENYJgCbDELGP$> -- std::is_debugger_present

Thanks for noticing :-)

--
-- René Ferdinand Rivera Morell
-- Don't Assume Anything -- No Supone Nada
-- Robot Dreams - http://robot-dreams.net<https://urldefense.com/v3/__http:/robot-dreams.net/__;!!FbZ0ZwI3Qg!6_j0JRAKq4oEYMtTXV__u7fJx0Hrlkum5lKzDd1Z3Ru3cqYQENYJgMXy2NDm$>


INTERNAL - NI CONFIDENTIAL

Received on 2022-01-04 09:04:41