title: How Should I Debug Samba with GDB
body: <p>I'm not good at English, and I'm sorry about that.
  Now, There is a question about when I debug samba with GDB.</p>
  
  <pre><code>    # 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
  </code></pre>
  
  <p>The program being debugged is not being run.
  So, How should I debug samba with GDB?</p>
  
  <p>ps: Version of Samba 3.0.5   I install samba from source code.</p>