title: Remote gdb debugging does not stop at breakpoints
body: <p>I'm having problems with debugging my modified Linux-3.11.0 kernel.
  For debugging the code, I use:</p>
  
  <ol>
  <li>GDB 7.6</li>
  <li>QEMU 1.6.5</li>
  <li>Linux kernel 3.11.0</li>
  </ol>
  
  <p>My system has Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz running Ubuntu 12.10</p>
  
  <p>I compiled the modified kernel with a configuration file that I created using 'make menuconfig'. (with modifications in the "kernel hacking" category)</p>
  
  <p>Some of the .config file lines (that I find relevant) are quoted here:</p>
  
  <pre><code>CONFIG_DEBUG_INFO=y 
  CONFIG_DEBUG_KERNEL=y
  CONFIG_MAGIC_SYSRQ=y
  CONFIG_DEBUG_FS=y
  CONFIG_HAVE_HW_BREAKPOINT=y
  CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
  </code></pre>
  
  <p>I use qemu with the "-S" option to boot my kernel, and using gdb I connect to qemu and resume it's execution:</p>
  
  <pre><code>(gdb) target remote :1234
  (gdb) continue
  </code></pre>
  
  <p>When setting breakpoints, for an example:
  <code>break schedule</code> I get a confirmation message such as:</p>
  
  <pre><code>Breakpoint 1 at 0xffffffff81736400: file kernel/sched/core.c, line 2509.
  </code></pre>
  
  <p>So till here everything seems fine!</p>
  
  <p>The problem is that gdb and qemu does not stop at the breakpoints!
  They both simply continue running...</p>
  
  <p>I tried to set hardware breakpoints as suggested in some places, but I get the message:</p>
  
  <pre><code>No hardware breakpoint support in the target.
  </code></pre>
  
  <p>which is weird because I have the CONFIG_HAVE_HW_BREAKPOINT set.</p>
  
  <p>I also unset <code>CONFIG_DEBUG_RODATA</code> as suggested in other places,but still no results...</p>
  
  <p>I tried to mess around with the .config file as suggested here: <a href="https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/901944" rel="noreferrer">gdbserver inside qemu does not stop on breakpoints </a> but I couldn't figure out the relevant differences between the working .config file and my .config file...  (There are too much differences!)</p>
  
  <p>Can anyone please help me?</p>
  
  <p>Thank You!! </p>