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 <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Automation <[email protected]>
This commit is contained in:
Zardshard
2023-04-06 02:56:16 +00:00
committed by waddlesplash
parent 9fe85f9688
commit d8eeb8a4cc
+8
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.