This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detach after exec() if we don't have permission to debug the child (i…
…t's setuid/setgid). 2009-10-19 Martin Baulig <martin@ximian.com> Detach after exec() if we don't have permission to debug the child; this happens if the exec()d binary is setuid/setgid. * backend/Inferior.cs (Inferior.ProcessEvent): Removed child_execd(). (Inferior.InitializeAfterExec): Call GetApplication() and start.SetupApplication() here. * backend/ProcessServant.cs (ProcessServant.ChildExecd): Catch `TargetError.PermissionDenied' and detach from the process; this happens when exec()ing setuid/setgid applications. * classes/TargetException.cs (TargetError): Add `PermissionDenied'. * backend/server/x86-linux-ptrace.c (_server_ptrace_setup_inferior): Check `EACCES' and return `COMMAND_ERROR_PERMISSION_DENIED'. svn path=/trunk/debugger/; revision=144386
- Loading branch information
Martin Baulig
committed
Oct 19, 2009
1 parent
425cbed
commit 4cd2602
Showing
6 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters