Make gdb.lookup_typename work for Rust types
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.rust / simple.exp
index 872b22c2fe781ad034ec81d415f133bd163decd4..db231623a4d262cb091aa69e0ded394d4764c90a 100644 (file)
@@ -246,3 +246,11 @@ gdb_test "print parametrized.next.val" \
     " = \\(simple::ParametrizedStruct<i32> \\*\\) $hex"
 gdb_test "print parametrized" \
     " = simple::ParametrizedStruct<i32> \\{next: simple::ParametrizedEnum<\[a-z:\]*Box<simple::ParametrizedStruct<i32>>>::Val\\{val: $hex\\}, value: 0\\}"
+
+
+load_lib gdb-python.exp
+if {[skip_python_tests]} {
+    continue
+}
+
+gdb_test "python print(gdb.lookup_type('simple::HiBob'))" "simple::HiBob"
This page took 0.024343 seconds and 4 git commands to generate.