[PATCH 2/2 v2] Demangler crash handler

Gary Benson gbenson@redhat.com
Thu May 22 10:37:00 GMT 2014


Pedro Alves wrote:
> Wouldn't a new "set debug demangle on" option, that would make
> GDB output:
> 
>  (gdb) bt / whatever-gdb-command-that-triggers-demangling
>  demangling _ZN2CV1mEi ... CV::m(int)
>  demangling _Zwhatever ... <NULL>
> 
> be just as helpful, and, even potentially be helpful to debug
> scenarios where GDB/libiberty might get the demangling wrong,
> but not cause a crash?

It would be as helpful for obtaining the symbol, although you would
get a lot more output (hundreds of thousands/millions of lines vs one
line).  It would not help the user to debug their program because GDB
would still crash.

Thanks,
Gary

--
http://gbenson.net/



More information about the Gdb-patches mailing list