This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: A revised patch for dlclose
- To: hjl at lucon dot org (H . J . Lu)
- Subject: Re: A revised patch for dlclose
- From: Todd Whitesel <toddpw at windriver dot com>
- Date: Wed, 8 Mar 2000 00:49:30 -0800 (PST)
- Cc: kingdon at redhat dot com (Jim Kingdon), kettenis at wins dot uva dot nl (Mark Kettenis), gdb-patches at sourceware dot cygnus dot com, gdb at sourceware dot cygnus dot com
> I am looking at the code. We can tell when a DSO is unloaded. The
> problem is how we update so_list_head and the loaded symbols. It
> looks very messy to me. I don't know how hard to release only one
> DSO and all memeries it uses.
If each DSO was given its own obstack, it would be pretty easy.
That is how the {p,}symtab memory management works already, and
I can testify that it does a pretty good job on vxWorks targets.
--
Todd Whitesel
toddpw @ windriver.com