How can I gdb a vfs module

Henrik Nordstrom hno at squid-cache.org
Wed Apr 21 18:07:38 GMT 2004


On Tue, 20 Apr 2004, Jagan wrote:

> I have a vfs module which is not working well. How can
> I gdb it. I did a gdb on smbd and couldnt get gdb to
> debug past the fork. When I place a breakpoint in a
> vfs module before a fork it does not work either.

You need to attach your gdb after the fork.. not sure if Samba has a 
"sleep after fork" option to allow attaching with GDB or not, it not add a 
sleep at a suitable place giving you some room to attach the gdb..

Regards
Henrik




More information about the samba-technical mailing list