Support rvalue references in the gdb python module (includes doc/)
[deliverable/binutils-gdb.git] / gdb / python / lib / gdb / types.py
index 799a07d49a8fa2e30751c5026abe1c4239d0b015..26a5027231ef393764bd2c627e6c3f2a7a18a3fb 100644 (file)
@@ -31,8 +31,10 @@ def get_basic_type(type_):
     """
 
     while (type_.code == gdb.TYPE_CODE_REF or
+           type_.code == gdb.TYPE_CODE_RVALUE_REF or
            type_.code == gdb.TYPE_CODE_TYPEDEF):
-        if type_.code == gdb.TYPE_CODE_REF:
+        if (type_.code == gdb.TYPE_CODE_REF or
+            type_.code == gdb.TYPE_CODE_RVALUE_REF):
             type_ = type_.target()
         else:
             type_ = type_.strip_typedefs()
This page took 0.023239 seconds and 4 git commands to generate.