This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [RFC] Skipping final cleanups in quit_target
- From: Aleksandar Ristovski <aristovski at qnx dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb at sourceware dot org
- Date: Thu, 06 Mar 2008 11:33:55 -0500
- Subject: Re: [RFC] Skipping final cleanups in quit_target
- References: <47D0198C.9080104@qnx.com> <20080306163038.GB555@caradoc.them.org>
Daniel Jacobowitz wrote:
On Thu, Mar 06, 2008 at 11:19:24AM -0500, Aleksandar Ristovski wrote:
Hello,
Does anyone see a problem in skipping "do_final_cleanups (ALL_CLEANUPS)"
in top.c (quit_target)?
quit_target is called just before we exit gdb.
I have a case where shutdown takes approx. 40sec. With skipping the
cleanups, time is significantly shorter.
Could you check which cleanups run, and which of them take so long?
I believe it is cleaning up the symbols and stuff like that (but i have to
double check to be sure).
Do they deal with letting go of the target system?
No, that is being done explicitly by calling target_kill/target_detach and
target_close in quit_target.