File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
lldb/tools/debugserver/source Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -475,9 +475,17 @@ nub_process_t DNBProcessAttach(nub_process_t attach_pid,
475475 extern int communication_fd;
476476
477477 if (communication_fd == -1 ) {
478- fprintf (stderr, " Trying to attach to a translated process with the "
479- " native debugserver, exiting...\n " );
480- exit (1 );
478+ DNBLogError (" Trying to attach to a translated process with the "
479+ " native debugserver, exiting...\n " );
480+ return INVALID_NUB_PROCESS_ARCH;
481+ }
482+
483+ struct stat st;
484+ if (::stat (translated_debugserver, &st) != 0 ) {
485+ DNBLogError (" Translated inferior process but Rosetta debugserver not "
486+ " found at %s" ,
487+ translated_debugserver);
488+ return INVALID_NUB_PROCESS_ARCH;
481489 }
482490
483491 snprintf (fdstr, sizeof (fdstr), " --fd=%d" , communication_fd);
You can’t perform that action at this time.
0 commit comments