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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user