RE: [RFC] Skipping final cleanups in quit_target

Pierre Muller
2008-03-06T16:34:36Z

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