# Inherit the TCC permissions from the inferior's parent.
"settings set target.inherit-tcc true",
+ # Kill rather than detach from the inferior if something goes wrong.
+ "settings set target.detach-on-error false",
+
# Disable fix-its by default so that incorrect expressions in tests don't
# pass just because Clang thinks it has a fix-it.
"settings set target.auto-apply-fixits false",
# Inherit TCC permissions. We can leave this set.
self.runCmd('settings set target.inherit-tcc true')
+ # Kill rather than detach from the inferior if something goes wrong.
+ self.runCmd('settings set target.detach-on-error false')
+
# And add hooks to restore the settings during tearDown().
self.addTearDownHook(lambda: self.runCmd(
"settings set target.inline-breakpoint-strategy headers"))
settings set symbols.clang-modules-cache-path "@LLDB_TEST_MODULE_CACHE_LLDB@"
settings set target.auto-apply-fixits false
settings set target.inherit-tcc true
+settings set target.detach-on-error false
Dbg->GetCommandInterpreter().HandleCommand(
"settings set target.inherit-tcc true",
/*add_to_history*/ eLazyBoolNo, Result);
+ Dbg->GetCommandInterpreter().HandleCommand(
+ "settings set target.detach-on-error false",
+ /*add_to_history*/ eLazyBoolNo, Result);
if (!opts::Log.empty())
Dbg->EnableLog("lldb", {"all"}, opts::Log, 0, errs());