http://sourceware.org/ml/gdb-patches/2012-09/msg00568.html