title: Remove all hardware watchpoints in Linux kernel 3.0.0
body: <p>After setting the first (and only possible) hardware watchpoint via <code>watch varname</code> in GDB, it's not possible to remove it via delete.</p>
  
  <p>Even if I just exit GDB, this watchpoint seems to be enabled till the next reboot. When I try to set another hardware watchpoint after GDB is restarted, a kernel message appears in logs telling me, all hardware watchpoints are already taken. It seems like it's the same problem as in <em><a href="https://stackoverflow.com/questions/3470704/gdb-problem-setting-hardware-watchpoint-how-to-set-software-watchpoint">Setting GDB hardware watchpoint/how to set software watchpoint</a></em>, but because I need a hardware watchpoint, the solution does not apply.</p>
  
  <p>Is there a tool or a syscall to remove this (or all) hardware watchpoint? The CPU is an <a href="https://en.wikipedia.org/wiki/Intel_Core#Core_i5" rel="noreferrer">Core i5</a> and the Linux kernel is 3.0.0-17-generic from <a href="http://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_11.10_.28Oneiric_Ocelot.29" rel="noreferrer">Ubuntu 11.10</a> (Oneiric Ocelot).</p>