xref: /NextBSD/lib/libxpc/xpc/debug.h (revision 33da5adc555b3bc29986eeadca03829e4ad06b1e)
1 #ifndef __XPC_DEBUG_H__
2 #define __XPC_DEBUG_H__
3 
4 /*!
5  * @function xpc_debugger_api_misuse_info
6  * Returns a pointer to a string describing the reason XPC aborted the calling
7  * process. On OS X, this will be the same string present in the "Application
8  * Specific Information" section of the crash report.
9  *
10  * @result
11  * A pointer to the human-readable string describing the reason the caller was
12  * aborted. If XPC was not responsible for the program's termination, NULL will
13  * be returned.
14  *
15  * @discussion
16  * This function is only callable from within a debugger. It is not meant to be
17  * called by the program directly.
18  */
19 XPC_DEBUGGER_EXCL
20 const char *
21 xpc_debugger_api_misuse_info(void);
22 
23 #endif // __XPC_DEBUG_H__
24