Skip to content

Commit 9b96ea1

Browse files
committed
GDB: Import gdb.printing
gdb.printing is not imported by default since version 16, for some reason
1 parent 26f5009 commit 9b96ea1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

main/debug_gdb_scripts.c

+1
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ asm(
698698
".ascii \"\\\"\\\"\\\"\\n\"\n"
699699
".ascii \"\\n\"\n"
700700
".ascii \"import gdb\\n\"\n"
701+
".ascii \"import gdb.printing\\n\"\n"
701702
".ascii \"import re\\n\"\n"
702703
".ascii \"\\n\"\n"
703704
".ascii \"pp_set = gdb.printing.RegexpCollectionPrettyPrinter(\\\"php\\\")\\n\"\n"

scripts/gdb/php_gdb.py

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"""
2929

3030
import gdb
31+
import gdb.printing
3132
import re
3233

3334
pp_set = gdb.printing.RegexpCollectionPrettyPrinter("php")

0 commit comments

Comments
 (0)