DBXHANG(1) DBXHANG(1)
dbxhang - start a process without really starting it
dbxhang object-file
dbxhang starts a program running by doing a fork(2) and exec(2), leaving
the program stopped before executing its first instruction.
This is useful when a program to be debugged does unusual things with tty
characteristics, or which is sensitive to the <Interrupt> character and
you don't want any <Interrupt> in the dbx command window sent to the
program to be debugged.
Use dbxhang on the program to be debugged in one window and intercept the
stopped program with dbx -p or dbx -P from a different window. In the
dbx session window, continue the program (after setting any breakpoints
desired) with the cont command: the run command is not usable on a
program intercepted with -p or -P.
Example:
dbxhang myprog myargument1 myargument2
(and, from another window)
dbx -P myprog
stop in main
cont
/usr/sbin/dbxhang
dbx(1)
Compiling Debugging and Performance Tuning
DBX Reference Manual (odbx)
IRIS-4D Series Compiler Guide
PPPPaaaaggggeeee 1111 [ Back ]
|