On Wed, Jul 20, 2011 at 11:03 AM, Pedro Alves wrote: > (Meant to say before but forgot... the DSO list is per > program space, not inferior -- you should move the > counter to struct program_space) Thanks for comments. Revised patch attached. Tested on Linux/x86_64 with no regressions. -- Paul Pluzhnikov 2011-07-22 Paul Pluzhnikov * progspace.h (struct program_space): Add solib_add_generation. * infcmd.c (post_create_inferior): Only call solib_add if not already done. * solib.c (solib_add): Increment solib_add_generation.