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: Michael Snyder <msnyder at specifix dot com>
- To: Aleksandar Ristovski <aristovski at qnx dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 06 Mar 2008 12:49:13 -0800
- Subject: Re: [RFC] Skipping final cleanups in quit_target
- References: <47D0198C.9080104@qnx.com>
On Thu, 2008-03-06 at 11:19 -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.
>
> Any thoughts?
Not sure -- what if the shut-down modifies target memory?
For example, removing breakpoints or something? If we
skip it, we could leave the target in an inconsistant state.
Maybe a user settable option? Kinda like "trust readonly"?