[Box Backup-dev] more linux guru help please!!
Ben Summers
boxbackup-dev@fluffy.co.uk
Wed, 26 Jul 2006 11:16:43 +0100
Try stepping over the fork statement (into the child), then setting
the breakpoints.
Ben
On 26 Jul 2006, at 10:20, Nick Knight wrote:
> Thanks Ben,
>
> That seem s to keep hold of the process, the problem I know have is
> break points do not appear to work.
>
> I have set them in various place I am confident that is being run, and
> they do not get caught, is there anything I should be looking for?
>
> For example in RaidFileRead.cpp:119 it works, but when I try and catch
> the exception which is being thrown in that function the break point
> does nothing - and the exception is still being thrown. I have tried
> putting another line (syslog) before the exception macro but this
> doesn't break either.
>
> Thanks
>
> Nick
>
> -----Original Message-----
> From: boxbackup-dev-admin@fluffy.co.uk
> [mailto:boxbackup-dev-admin@fluffy.co.uk] On Behalf Of Ben Summers
> Sent: 26 July 2006 09:07
> To: boxbackup-dev@fluffy.co.uk
> Subject: Re: [Box Backup-dev] more linux guru help please!!
>
>
> 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@fluffy.co.uk
>> http://lists.warhead.org.uk/mailman/listinfo/boxbackup-dev
>
> _______________________________________________
> Boxbackup-dev mailing list
> Boxbackup-dev@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup-dev
> _______________________________________________
> Boxbackup-dev mailing list
> Boxbackup-dev@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup-dev