[Box Backup-dev] more linux guru help please!!

Ben Summers boxbackup-dev at fluffy.co.uk
Wed Jul 26 09:07:18 BST 2006


In gdb...

set follow-fork-mode child
r <config_file> SINGLEPROCESS

The first line gets gdb to go into the forked child. The second runs  
the process with an argument which avoids the first couple of forks  
to daemonise.

Ben




On 26 Jul 2006, at 09:00, Nick Knight wrote:

> Hello all,
>
> I have resorted to try and debug the server using gdb, which I am a
> complete newbie at! My life is spent in the save old world of MSVC  
> IDE:)
>
> I have tried so far using gdb and ddd, but I have a lot of problems
>
> 1. When I start the program it immediately exit's as the program forks
> off, (in MSVC in would carry on for you), how do I get it to debug all
> child processes
> 2. Because of the problem in 1, I connected from the client, noted the
> process ID, attached the debugger, but as soon as I attached and
> continued running, the server died (or that process) with a TLS error.
>
> Does anyone have any tips for running it up in a debugger?
>
> Thanks
>
> Nick
> _______________________________________________
> Boxbackup-dev mailing list
> Boxbackup-dev at fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup-dev




More information about the Boxbackup-dev mailing list