It greatly simplifies the display of complex objects This articale shows you how to create such printers via gdb's python api. This mechanism works for both mi and the cli
My ~/.gdbinit now looks like this By default, gdb may display raw data that can be difficult to interpret, especially for intricate structures Python import sys sys.path.insert(0, '/opt/
This is just the plumbing. Since a pretty printer determines what you see as the value of a variable when you are debugging if you want to change what you see then you can create your own pretty printer Despite the long list of languages gdb support natively your may be using (or like me actually involved in creating) a language that is not supported. You create a basic printer in minutes
Use time to your advantage. An example output is provided (see pretty printing)