From 0892cb63bda9ac0bb2dea19d04ea35b2b54429d6 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 6 May 2013 22:18:39 +0000 Subject: * solist.h (struct target_so_ops): New member clear_so. * solib-svr4.c (svr4_clear_so): New function. (_initialize_svr4_solib): Set svr4_so_ops.clear_so. * solib.c (clear_so): Renamed from free_so_symbols. All callers updated. Call target clear_so if it exists. --- gdb/solist.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/solist.h') diff --git a/gdb/solist.h b/gdb/solist.h index f784fc349ed..049547417f8 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -88,6 +88,11 @@ struct target_so_ops associated with a so_list entry. */ void (*free_so) (struct so_list *so); + /* Reset private data structures associated with SO. + This is called when SO is about to be reloaded. + It is also called before free_so when SO is about to be freed. */ + void (*clear_so) (struct so_list *so); + /* Reset or free private data structures not associated with so_list entries. */ void (*clear_solib) (void); -- cgit v1.2.1