[libcxx-commits] [libcxx] 0c2a454 - [libcxx][pretty printers] Import gdb module in gdb feature check

David Spickett via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 24 02:05:25 PDT 2021


Author: David Spickett
Date: 2021-09-24T09:04:44Z
New Revision: 0c2a4548455c6c943ac5e2b5c51ed5c2c91e34e7

URL: https://github.com/llvm/llvm-project/commit/0c2a4548455c6c943ac5e2b5c51ed5c2c91e34e7
DIFF: https://github.com/llvm/llvm-project/commit/0c2a4548455c6c943ac5e2b5c51ed5c2c91e34e7.diff

LOG: [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)

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/features.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py
index 1204304899120..ec4850207f524 100644
--- a/libcxx/utils/libcxx/test/features.py
+++ b/libcxx/utils/libcxx/test/features.py
@@ -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:


        


More information about the libcxx-commits mailing list