Debugger: Fix crash regression.

- During the TargetHostInterface refactoring, a parameter was accidentally
  omitted for the debugger options in the command line and report interfaces,
  leading to a crash during TeamDebugger init.
This commit is contained in:
Rene Gollent 2016-04-26 22:34:00 -04:00
parent bac2e686dc
commit 5c8966c740

View File

@ -661,6 +661,7 @@ CliDebugger::Run(const Options& options)
TeamDebuggerOptions debuggerOptions;
set_debugger_options_from_options(debuggerOptions, options);
debuggerOptions.userInterface = userInterface;
debuggerOptions.settingsManager = &settingsManager;
error = hostInterface->StartTeamDebugger(debuggerOptions);
if (error != B_OK)
return false;
@ -725,6 +726,7 @@ ReportDebugger::Run(const Options& options)
TeamDebuggerOptions debuggerOptions;
set_debugger_options_from_options(debuggerOptions, options);
debuggerOptions.userInterface = userInterface;
debuggerOptions.settingsManager = &settingsManager;
error = hostInterface->StartTeamDebugger(debuggerOptions);
if (error != B_OK)
return false;