[libcxx-commits] [libcxx] WIP - [libc++][debugging] P2546R5: Debugging support & P2810R4: `is_debugger_present` `is_replaceable` (PR #81447)

René Ferdinand Rivera Morell via libcxx-commits libcxx-commits at lists.llvm.org
Sun May 5 07:16:05 PDT 2024


================
@@ -1460,6 +1461,11 @@ typedef __char32_t char32_t;
 #    define _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER
 #  endif
 
+#  if (defined(__APPLE__) || defined(__FreeBSD__) || defined(__linux__) || defined(_LIBCPP_WIN32API) || defined(_AIX)) &&               \
+      !defined(__PICOLIBC__) && !defined(_LIBCPP_HAS_NO_INCOMPLETE_DEBUGGING)
+#    define _LIBCPP_HAS_DEBUGGING
+#  endif
+
----------------
grafikrobot wrote:

An FYI in case it helps in clarifying.. The intent during wg21 discussions was that a library would only indicate it has debugging support if the `breakpoint` call was implemented. And in that case the `is_debugger_present` could be minimally implemented as returning `false`.

https://github.com/llvm/llvm-project/pull/81447


More information about the libcxx-commits mailing list