Files
clang-p2996/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSXProperties.td
Jim Ingham bff4673b41 Add a darwin platform setting to specify which exceptions debugserver
should not receive as exceptions (some will get converted to BSD
signals instead).  This is really the only stable way to ensure that
a Mach exception gets converted to it's equivalent BSD signal.  For
programs that rely on BSD signal handlers, this has to happen or you
can't even get the program to invoke the signal handler when under
the debugger.

This builds on a previous solution to this problem which required you
start debugserver with the -U flag.  This was not very discoverable
and required lldb be the one to launch debugserver, which is not always
the case.

Differential Revision: https://reviews.llvm.org/D125434
2022-05-18 10:16:11 -07:00

17 lines
670 B
TableGen

include "../../../../include/lldb/Core/PropertiesBase.td"
let Definition = "platformdarwinkernel" in {
def KextDirectories: Property<"kext-directories", "FileSpecList">,
DefaultStringValue<"">,
Desc<"Directories/KDKs to search for kexts in when starting a kernel debug session.">;
}
let Definition = "platformdarwin" in {
def IgnoredExceptions: Property<"ignored-exceptions", "String">,
DefaultStringValue<"">,
Desc<"List the mach exceptions to ignore, separated by '|' "
"(e.g. 'EXC_BAD_ACCESS|EXC_BAD_INSTRUCTION'). "
"lldb will instead stop on the BSD signal the exception was converted "
"into, if there is one.">;
}