DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
dbXtra and dbxtra

Attaching to a running process

ptrace(S) allows a process to take control of another process while it is running. This is subject to various security controls: you must own the process you are attaching to, you must be able to read its code file, and the "attacked" process must not have different effective and saved UIDs or GIDs.

dbXtra/dbxtra (and dbx) uses these features to allow you to debug a running process. This is done by specifying the PID of the target process on the command line instead of the name of a core file. Remember that you still have to specify the name of the object file.

The process will be stopped and the debugger will take control of the process. Note:


Previous topic: Debugging child processes

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003