[RFC] Skipping final cleanups in quit_target
Aleksandar Ristovski
aristovski@qnx.com
Thu Mar 6 16:51:00 GMT 2008
Pierre Muller wrote:
> 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.
Yes, I am not against final cleanups in general, I am just looking for ways to
cut down the time users perceive as useless waiting.
>
> 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