
Does anyone know how to debug multi-process programs using dbx?
Quote:
> I'm using dbx for solaris 2.5. I've trying dbx command "lwp" and "lwps"
> but got the message "lwp(s) is not available".
The lwp command is for use with multithreaded programs. If you want to
use only dbx to debug a multi-process program, then you need to run
multiple dbx's, attaching to each process.
A better solution is to use Sun WorkShop, if you have it.
It is not only a gui to dbx, but cooperates with dbx for multisession
programs. For example, when the program forks, you can choose to
follow the parent, the child, or both. You can then use the
session manager to switch between the processes you're debugging. By
default, WorkShop stays with only the parent after a fork, so if you
want to debug all processes that are created go into Debugging
Options, select the "Forks and Threads" category, and under
"Process to follow after a fork" select "Both" (or "Ask" if you want a
popup every time) and hit OK.
-- Tor