[PATCH 3/3 v4] Demangler crash handler
Florian Weimer
fw@deneb.enyo.de
Fri Jun 6 19:42:00 GMT 2014
* Gary Benson:
> Florian Weimer wrote:
>> * Gary Benson:
>> > + sigaction (SIGSEGV, &sa, &old_sa);
>> > + crash_signal = SIGSETJMP (gdb_demangle_jmp_buf);
>> > + sigaction (SIGSEGV, &old_sa, NULL);
>>
>> That's quite a bit of additional work for each demangler invocation.
>> Is this visible with things like tab completion?
>
> I tested this a while back: it's not noticable.
>
> FWIW I did time gdb -nx -batch \
> /usr/lib64/libreoffice/program/soffice.bin \
> -ex "start" -ex "complete b" > /dev/null
>
> That invokes the demangler some 3,100,000 times. I don't remember
> the exact times but they were of the order of 50s in both cases.
Good to know, thanks.
More information about the Gdb-patches
mailing list