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: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: "'Aleksandar Ristovski'" <aristovski at qnx dot com>, <gdb at sourceware dot org>
- Date: Thu, 6 Mar 2008 17:33:36 +0100
- Subject: RE: [RFC] Skipping final cleanups in quit_target
- References: <47D0198C.9080104@qnx.com>
This should at least be configurable
because it is good practice to have
program that do cleanups...
An example is that you might want to
check if gdb is leaking memory, and you
can do that by simply looking at
heap allocations remaining at exit.
Such tests will be harder with your suggestions,
which is the reason why I would suggest
to make this a configurable option.
Pierre Muller
> -----Original Message-----
> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> Behalf Of Aleksandar Ristovski
> Sent: Thursday, March 06, 2008 5:19 PM
> To: gdb@sourceware.org
> Subject: [RFC] Skipping final cleanups in quit_target
>
> 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?
>
> Thank you,
>
> Aleksandar Ristovski
> QNX Software Systems