From 8bbf7e8d98f92ef2a26714b858c35a83f980ec5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Vrba?= Date: Thu, 5 Oct 2023 12:19:21 +0200 Subject: [PATCH] updated the debugging tutorial with link on how to install libstdc++ debugging symbols --- docs/software/gdb.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/software/gdb.md b/docs/software/gdb.md index 6d438c6c..8b9ad439 100644 --- a/docs/software/gdb.md +++ b/docs/software/gdb.md @@ -139,6 +139,12 @@ root - core unlimited * - core unlimited ``` +## Getting debugging symbols for the C++ standard library + +By default, the `libstdc++` regrettably doesn't come installed with debugging symbols in Ubuntu 20.04 (this shouldn't be a problem for 22.04 and newer releases). +This means, that you can't use e.g. `std::cout::operator<<()` and other functions from the standard library while in GDB, which may be quite limiting. +[Here](https://wiki.ubuntu.com/Debug%20Symbol%20Packages) is an official tutorial on how to install them. + ## Further reading If you're not satisfied with the basic CLI/TUI debugging options GDB offers, note that it is very easily extendable and scriptable.