From 2eff07b325d8e8d6719844464d744c008860a6a3 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Tue, 26 Jul 2011 15:17:47 +0000 Subject: 2011-07-26 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. --- gdb/solib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/solib.c') diff --git a/gdb/solib.c b/gdb/solib.c index 94f8f13..49c1cdb 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -914,6 +914,8 @@ solib_add (char *pattern, int from_tty, { struct so_list *gdb; + current_program_space->solib_add_generation++; + if (pattern) { char *re_err = re_comp (pattern); -- cgit v1.1