Valgrind And GDB In Close Cooperation
Red Hat News, Friday, November 3,2023
It used to be tricky to run GDB and connect Valgrind to it, but that's not the case any more. The 3.21.0 Valgrind release brings new great features that allow using it and GDB much more easily and conveniently in a single terminal.
In this article, I review some of those new features, and show you how to launch Valgrind from inside a GDB session. I also demonstrate the advantages of using --multi mode together with the Valgrind Python monitor commands on a small example program containing intentional bugs.