>>>>> On Tue, 1 Dec 1992 00:29:59 GMT, jrs@world.std.com (Rick Sladkey) said:
Muhammad> Does anybody know how to make gdb trace a forked process
Muhammad> instead of the parent process? i.e. to switch between
Muhammad> different processes of the progarm being debugged? Thanks.
RS> My processes get seriously froked all the time. Sorry, even gdb
RS> doesn't help...
Gee, tough crowd. Can't a guy make an honest spelling mistake and get
away with it? :-)
Well, there is actually a way to attach a background process in gdb.
use 'attach <pid>' to achieve that. Thanks to Mike Irons for the hint.
I haven't actually tested it yet, so I can't say whether it works or
not.
Have fun!
--
/M. Saggaf
alsaggaf@athena.mit.edu
Previous message: [thread] [date] [author] Next message: [thread] [date] [author]
Messages in current thread:
Re: Tracing froked processes with gdb, M. Saggaf, (Tue Dec 1, 3:02 pm)