copy attach_flag to fork children

Pedro Alves pedro@codesourcery.com
Mon Jan 26 23:00:00 GMT 2009


This restores the behaviour gdb had when attach_flag was a global, instead
of beeing an inferior property.  This way, both terminal_inferior/terminal_ours
will behave identically in fork children, and, gdb will default to want to
detach from forked children of attached inferiors too.

While testing on OpenBSD, I noticed that the detach_breakpoints call
was asserting, because it was now being done before updating inferior_ptid.

Fixed that, did a testrun on x86_64-linux, and checked in.

-- 
Pedro Alves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attach_flag.diff
Type: text/x-diff
Size: 4300 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20090126/fe76ca4d/attachment.bin>


More information about the Gdb-patches mailing list