Skip to content

Commit a53003f

Browse files
[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 bminor/binutils-gdb@fc14343205d3a and `import gdb.printing` was first referenced in bminor/binutils-gdb@ee06c79b0f. Co-authored-by: Dmitry Chestnykh <[email protected]>
1 parent 316f530 commit a53003f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libcxx/utils/gdb/libcxx/printers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import re
1616
import gdb
17+
import gdb.printing
1718

1819
# One under-documented feature of the gdb pretty-printer API
1920
# is that clients can call any other member of the API

0 commit comments

Comments
 (0)