Wednesday, 21 August 2013

How Should I Debug Samba with GDB

How Should I Debug Samba with GDB

I'm not good at English, and I'm sorry about that.
Now, There is a question about when I debug samba with GDB.
gdb /usr/local/samba/sbin/smbd
GNU gdb Red Hat Linux (5.2.1-4) Copyright 2002 Free Software Foundation,
Inc. GDB is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions. There is absolutely
no warranty for GDB. Type "show warranty" for details. This GDB was
configured as "i386-redhat-linux"... (gdb) r Starting program:
/usr/local/samba/sbin/smbd
Program exited normally. (gdb) info program
The program being debugged is not being run.
So, How should I debug samba with GDB.
ps: Version of Samba 3.0.5 I install samba from source code.

No comments:

Post a Comment