Re: [PATCH v4] libstdc++: Implement C++26 features (P2546R5)

2025-05-22 Thread Jonathan Wakely
On Mon, 5 May 2025 at 10:16, Uros Bizjak wrote: > > On Thu, May 1, 2025 at 12:59 PM Jonathan Wakely wrote: > > > > This includes the P2810R4 (is_debugger_present is_replaceable) changes, > > allowing std::is_debugger_present to be replaced by the program. > > > > It would be good to provide a mac

Re: [PATCH v4] libstdc++: Implement C++26 features (P2546R5)

2025-05-05 Thread Uros Bizjak
On Thu, May 1, 2025 at 12:59 PM Jonathan Wakely wrote: > > This includes the P2810R4 (is_debugger_present is_replaceable) changes, > allowing std::is_debugger_present to be replaced by the program. > > It would be good to provide a macOS definition of is_debugger_present as > per https://developer

Re: [PATCH v4] libstdc++: Implement C++26 features (P2546R5)

2025-05-05 Thread Jonathan Wakely
On Mon, 5 May 2025, 09:53 Jonathan Wakely, wrote: > > > On Mon, 5 May 2025, 09:23 Sam James, wrote: > >> Jonathan Wakely writes: >> >> > [...] >> > +void >> > +std::breakpoint() noexcept >> > +{ >> > + PROBE(std::breakpoint); >> > + >> > + if (__gnu_cxx::debugger_signal_for_breakpoint > 0) >>

Re: [PATCH v4] libstdc++: Implement C++26 features (P2546R5)

2025-05-05 Thread Tomasz Kaminski
On Mon, May 5, 2025 at 10:55 AM Jonathan Wakely wrote: > > > On Mon, 5 May 2025, 09:23 Sam James, wrote: > >> Jonathan Wakely writes: >> >> > [...] >> > +void >> > +std::breakpoint() noexcept >> > +{ >> > + PROBE(std::breakpoint); >> > + >> > + if (__gnu_cxx::debugger_signal_for_breakpoint >

Re: [PATCH v4] libstdc++: Implement C++26 features (P2546R5)

2025-05-05 Thread Jonathan Wakely
On Mon, 5 May 2025, 09:23 Sam James, wrote: > Jonathan Wakely writes: > > > [...] > > +void > > +std::breakpoint() noexcept > > +{ > > + PROBE(std::breakpoint); > > + > > + if (__gnu_cxx::debugger_signal_for_breakpoint > 0) > > +std::raise(__gnu_cxx::debugger_signal_for_breakpoint); > > +

Re: [PATCH v4] libstdc++: Implement C++26 features (P2546R5)

2025-05-05 Thread Sam James
Jonathan Wakely writes: > [...] > +void > +std::breakpoint() noexcept > +{ > + PROBE(std::breakpoint); > + > + if (__gnu_cxx::debugger_signal_for_breakpoint > 0) > +std::raise(__gnu_cxx::debugger_signal_for_breakpoint); > + glib's https://gitlab.gnome.org/GNOME/glib/-/blob/main/glib/gbackt

Re: [PATCH v4] libstdc++: Implement C++26 features (P2546R5)

2025-05-05 Thread Tomasz Kaminski
On Thu, May 1, 2025 at 12:59 PM Jonathan Wakely wrote: > This includes the P2810R4 (is_debugger_present is_replaceable) changes, > allowing std::is_debugger_present to be replaced by the program. > > It would be good to provide a macOS definition of is_debugger_present as > per https://developer.

[PATCH v4] libstdc++: Implement C++26 features (P2546R5)

2025-05-01 Thread Jonathan Wakely
This includes the P2810R4 (is_debugger_present is_replaceable) changes, allowing std::is_debugger_present to be replaced by the program. It would be good to provide a macOS definition of is_debugger_present as per https://developer.apple.com/library/archive/qa/qa1361/_index.html but that isn't inc