Skip to content

Commit 21ca28d

Browse files
authored
fix: update pretty-printer to work with gdb 17
Fixed 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` require `import gdb.printing` statement, which was missing from the printers.py Broken after commit bminor/binutils-gdb@fc14343, and `importgdb.printing` was first referenced in bminor/binutils-gdb@ee06c79
1 parent 8422c3d commit 21ca28d

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)