http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48251
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-19 11:28:25 UTC --- If you can't attach to a running process, that sounds like either a gdb bug, or kernel bug, certainly not a gcc fault.