[libcxx][pretty printers] Import gdb module in gdb feature check
authorDavid Spickett <david.spickett@linaro.org>
Fri, 24 Sep 2021 09:02:34 +0000 (09:02 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Fri, 24 Sep 2021 09:04:44 +0000 (09:04 +0000)
Earlier versions of GDB do not do this automatically.
(from my checks 8.3 does not and 9.2 does)

libcxx/utils/libcxx/test/features.py

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