https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117372
Bug ID: 117372 Summary: std::list pretty printer: AttributeError: 'NoneType' object has no attribute 'pointer' Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: simon.marchi at polymtl dot ca Target Milestone: --- I got this while debugging gdb with gdb. I have not been able to make a small reproducer yet. Steps: 1. Checkout binutils-gdb at commit 35d53ce6429a 2. configure with: ./configure 'CFLAGS=-g3 -O0' 'CXXFLAGS=-g3 -O0' 3. make 4. start gdb: ./gdb 5. attach using system gdb, or some other gdb configured to find the libstdc++ pretty printers 6. print current_program_space.objfiles_list What I get is (top-gdb) p current_program_space.objfiles_list $1 = empty std::__cxx11::listTraceback (most recent call last): File "/usr/share/gcc-14.2.1/python/libstdcxx/v6/printers.py", line 422, in children nodetype = lookup_node_type('_List_node', self._val.type).pointer() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'pointer' It's the result of `lookup_node_type` that is None. The system gcc version is "gcc (GCC) 14.2.1 20240910" (Arch Linux package) The system gdb version used to attach is 15.2 (Arch Linux package)