Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable name demangling on GDB startup

Tags:

c++

gdb

This may be a weird request, but is there a way to disable symbol demangling in GDB? Even better would be to disable name demangling for certian subset of symbols. I am dealing with some heavily templated code, and most of the time GDB spends demangling the symbols. Since they are gigantic/nonsensical, and are more compact when they are mangled, is there a way to turn this off?

like image 800
Alexander Kondratskiy Avatar asked Oct 15 '25 14:10

Alexander Kondratskiy


1 Answers

gdb has a couple of settings to control demangling. You can find them with apropos demangle, but basically the interesting ones are set print demangle and set print asm-demangle.

However, you should know that there's a bug open because this setting was broken and never fixed.

like image 121
Tom Tromey Avatar answered Oct 17 '25 04:10

Tom Tromey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!