Andrew Pinski reported on gdb-patches (https://sourceware.org/ml/gdb-patches/2013-07/msg00665.html): | I noticed after a fork, gdb would fail with the following message: | > Unexpected error setting hardware debug registers
Patch for GDB checked in on master: http://www.sourceware.org/ml/gdb-patches/2013-09/msg00370.html The same problem was detected in GDBserver as well. Fixed on master: http://www.sourceware.org/ml/gdb-patches/2013-09/msg00381.html GDBserver fix on the gdb_7_6-branch: http://www.sourceware.org/ml/gdb-patches/2013-09/msg00449.html And finally, GDB patch backported to the 7.6 branch: http://www.sourceware.org/ml/gdb-patches/2013-11/msg00782.html So, the problem should now be fixed in the upcoming GDB 7.6.2 release.