public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Demangling in backtraces
@ 2021-03-06 18:56 Eli Zaretskii
  2021-03-13  8:55 ` Eli Zaretskii
  2021-03-14  7:28 ` Andreas Schwab
  0 siblings, 2 replies; 12+ messages in thread
From: Eli Zaretskii @ 2021-03-06 18:56 UTC (permalink / raw)
  To: gdb

I have built a C program linked against libgccjit.  When it crashes,
the backtrace shows mangled names, like this:

 #0  0x70f5ac3e in libgccjit-0!_Z17gimple_build_callP9tree_nodejz ()
    from D:\usr\bin\libgccjit-0.dll
 #1  0x7190fa7b in libgccjit-0!_ZN19evrp_range_analyzer5leaveEP15basic_block_def
 () from D:\usr\bin\libgccjit-0.dll
 #2  0x71910eef in libgccjit-0!_Z36stmt_uses_0_or_null_in_undefined_wayP6gimple
     () from D:\usr\bin\libgccjit-0.dll
 #3  0x710fba2c in libgccjit-0!_Z16execute_one_passP8opt_pass ()
    from D:\usr\bin\libgccjit-0.dll

(This is because libgccjit is written in C++, and because the DLL is
stripped.)

How can I cause GDB to demangle the function names when showing the
backtrace in this case?  I tried setting language to c++, but that
didn't help.

TIA

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-03-14  9:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-06 18:56 Demangling in backtraces Eli Zaretskii
2021-03-13  8:55 ` Eli Zaretskii
2021-03-14  2:46   ` Simon Marchi
2021-03-14  5:45     ` Eli Zaretskii
2021-03-14  7:29       ` Andreas Schwab
2021-03-14  7:43         ` Eli Zaretskii
2021-03-14  8:09           ` Nagmat Nazarov
2021-03-14  7:28 ` Andreas Schwab
2021-03-14  7:36   ` Eli Zaretskii
2021-03-14  8:26     ` Andreas Schwab
2021-03-14  9:40       ` Eli Zaretskii
2021-03-14  7:54   ` Jeffrey Walton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).