[libcxx][pretty printers] Import gdb module in gdb feature check

Earlier versions of GDB do not do this automatically.
(from my checks 8.3 does not and 9.2 does)
This commit is contained in:
David Spickett 2021-09-24 09:02:34 +00:00
parent c2634fc6ab
commit 0c2a454845
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ def check_gdb(cfg):
# Using the quit command here means that gdb itself exits, not just # Using the quit command here means that gdb itself exits, not just
# the "python <...>" command. # the "python <...>" command.
test_src = """\ test_src = """\
import gdb
try: try:
gdb.Breakpoint(\"main\").commands=\"foo\" gdb.Breakpoint(\"main\").commands=\"foo\"
except AttributeError: except AttributeError: