new gdb magic from Petr Gajdos