Skip to content

Commit

Permalink
updated the debugging tutorial with link on how to install libstdc++ …
Browse files Browse the repository at this point in the history
…debugging symbols
  • Loading branch information
matemat13 committed Oct 5, 2023
1 parent a031cd8 commit 8bbf7e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/software/gdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8bbf7e8

Please sign in to comment.