summaryrefslogtreecommitdiff
path: root/gdb/solist.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-05-06 22:18:39 +0000
committerDoug Evans <dje@google.com>2013-05-06 22:18:39 +0000
commit0892cb63bda9ac0bb2dea19d04ea35b2b54429d6 (patch)
tree27fcdc4f9831db80064df749957797af8555b6fc /gdb/solist.h
parentfac51dd9e59b66e8427ed00c417cb1bf5b0679ac (diff)
downloadbinutils-gdb-0892cb63bda9ac0bb2dea19d04ea35b2b54429d6.tar.gz
* 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.
Diffstat (limited to 'gdb/solist.h')
-rw-r--r--gdb/solist.h5
1 files changed, 5 insertions, 0 deletions
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);