title: How to use kgdb on ARM??
body: <p>Im using <code>ARMv7</code> as a target machine. I have compiled the Linux source <code>2.6.34.13</code> for target.  </p>
  
  <p>Target is connected with Host(Linux Development machine) through serial port using minicom.</p>
  
  <p><strong>Target</strong> is loaded with new kernel and KGDB is enabled in command prompt.</p>
  
  <pre><code>$ echo ttyAMA0 &gt; /sys/module/kgdboc/parameters/kgdboc 
  $ echo g &gt; /proc/sysrq-trigger
  </code></pre>
  
  <p>Entering KGDB... message is displayed and waits for commands.</p>
  
  <p>In <strong>Host side</strong>, </p>
  
  <pre><code>$arm-none-linux-gnueabi-gdb vmlinux
  
      gdb &gt; set remotebaud 115200
      gdb &gt; set debug remote 1
      gdb &gt; target remote /dev/ttyS0
  </code></pre>
  
  <p>After this, some command communication takes place by default.</p>
  
  <ol>
  <li><p><code>qSupported</code> is sent from Host to Target. But qSuppoted is not supported by target so $#00 is returned. similarly <code>?</code>, <code>HC-1</code> commands were sent but receives proper response.</p></li>
  <li><p>But <code>qOffsets</code> command not receiving any response from target.</p></li>
  </ol>
  
  <p>I suspect vmlinux. Because if I give <code>list</code> in gdb, its not showing 10 lines of code instead it says</p>
  
  <pre><code>arch/arm/kernel/head.S : No such file or directory.
  </code></pre>
  
  <p>Note :: Kernel compilation done in server. so no source is available in development machine. But arm-gdb looks for head.S it seems. </p>
  
  <p>I am not sure what mistake im doing. I need symbols to be loaded for entire kernel. Guide me in this regards. </p>