http://sourceware.org/ml/gdb-patches/2012-10/msg00083.html