Landing: e21755893e22
Project / Subsystem
gcc / libstdc++
Date
2026-07-27
Author
David Faure
Commit
e21755893e22a9458f48b7f9b84a74de43039151
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- e21755893e22a9458f48b7f9b84a74de43039151
- source_type
- github
- headline
- libstdc++: Fix parameter name in map/set printer num_children
- tldr
- Corrects a typo in the parameter name 'slf' to 'self' in GDB pretty-printer methods for map and set containers.
- author
- David Faure
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • gdb
- • pretty-printer
- • debug
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-27T00:00:00.000Z
This commit addresses a NameError in GDB’s pretty-printer for std::map and std::set within libstdc++. The num_children methods incorrectly named their parameter slf, while referring to self within the method body. This typo prevented the methods from working correctly, particularly for debuggers and IDEs (like KDevelop) that delegate calls to these printers. The fix changes slf to self, resolving the NameError and restoring correct functionality for map and set pretty-printing.