[libcxx-commits] [libcxx] a53003f - [libc++] Update GDB pretty-printer to work with GDB 17 (#142106)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 12 08:51:25 PDT 2025
Author: kotborealis
Date: 2025-06-12T11:51:22-04:00
New Revision: a53003fe23cb6c871e72d70ff2d3a075a7490da2
URL: https://github.com/llvm/llvm-project/commit/a53003fe23cb6c871e72d70ff2d3a075a7490da2
DIFF: https://github.com/llvm/llvm-project/commit/a53003fe23cb6c871e72d70ff2d3a075a7490da2.diff
LOG: [libc++] Update GDB pretty-printer to work with GDB 17 (#142106)
This patch fixes an issue in libcxx/utils/gdb/libcxx/printers.py.
With gdb 17 (binutils 2_44) pretty-printers do not work anymore because
calls to `gdb.printing` requires `import gdb.printing` statement, which
was missing from the `printers.py`.
This was broken after commit https://github.com/bminor/binutils-gdb/commit/fc14343205d3a
and `import gdb.printing` was first referenced in https://github.com/bminor/binutils-gdb/commit/ee06c79b0f.
Co-authored-by: Dmitry Chestnykh <dm.chestnykh at gmail.com>
Added:
Modified:
libcxx/utils/gdb/libcxx/printers.py
Removed:
################################################################################
diff --git a/libcxx/utils/gdb/libcxx/printers.py b/libcxx/utils/gdb/libcxx/printers.py
index e3d5d87aca325..90bc54d987ee8 100644
--- a/libcxx/utils/gdb/libcxx/printers.py
+++ b/libcxx/utils/gdb/libcxx/printers.py
@@ -14,6 +14,7 @@
import re
import gdb
+import gdb.printing
# One under-documented feature of the gdb pretty-printer API
# is that clients can call any other member of the API
More information about the libcxx-commits
mailing list