Does anyone know how to debug multi-process programs using dbx? 
Author Message
 Does anyone know how to debug multi-process programs using dbx?

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".

Thanks in advance,

--
                        ("`-''-/").___..--''"`-._
                         `6_ 6  )   `-.  (     ).`-.__.`)
                         (_Y_.)'  ._   )  `._ `. ``-..-'
 Sean Liu              _..`--'_..-_/  /--'_.' ,'

--------------------------------------------------------
 "It takes both the sun and the rain to make a rainbow."
--------------------------------------------------------



Mon, 18 Dec 2000 03:00:00 GMT  
 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



Mon, 18 Dec 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Anyone done any TAPI programming?

2. debugging multi processes in VC++

3. Multi process debugging

4. How to know the variables of the debugged process

5. How to know the variables of the debugged process

6. Anyone know some good chess programming sources?

7. Does anyone know any good C programming URLs?

8. Does anyone know how to play a .wav file in a c program

9. Anyone know how to programatically installing a display driver using an .INF file

10. Is anyone know about programming with tape?

11. knowing the process which is using internet.

12. Debugging multi-thread program

 

 
Powered by phpBB® Forum Software