[RFC] Skipping final cleanups in quit_target

Pierre Muller muller@ics.u-strasbg.fr
Thu Mar 6 16:40:00 GMT 2008


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





More information about the Gdb mailing list