Debugger: explain target must be specified for CLI debugger

Previous behaviour was to exit without any explanation.

Change-Id: I3350a139fadffb197c7833f3c46861a401f86271
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6306
Reviewed-by: Rene Gollent <rene@gollent.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Automation <automation@haiku-os.org>
This commit is contained in:
Zardshard 2023-04-05 10:22:37 -04:00 committed by waddlesplash
parent 9fe85f9688
commit d8eeb8a4cc

View File

@ -674,6 +674,14 @@ CliDebugger::~CliDebugger()
bool
CliDebugger::Run(const Options& options)
{
if (options.commandLineArgc == 0
&& options.team < 0
&& options.thread < 0
&& options.coreFilePath == NULL) {
fprintf(stderr, "No target specified to debug\n");
return false;
}
// Block SIGINT, in this thread so all threads created by it inherit the
// a block mask with the signal blocked. In the input loop the signal will
// be unblocked again.