Fix break on Python 2
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.python / py-record-btrace.exp
index 65a3e7d041395c7be6667e7741672b1e6d08ead7..7752cac5b796aa8af818ccc7957e3846ba1d4d5c 100644 (file)
@@ -85,7 +85,11 @@ with_test_prefix "instruction " {
     gdb_test "python print(i.error)" "None"
     gdb_test "python print(i.sal)" "symbol and line for .*"
     gdb_test "python print(i.pc)" "$decimal"
-    gdb_test "python print(i.data)" "<memory at $hex>"
+    if { $gdb_py_is_py3k == 0 } {
+       gdb_test "python print(repr(i.data))" "<read-only buffer for $hex,.*>"
+    } else {
+       gdb_test "python print(repr(i.data))" "<memory at $hex>"
+    }
     gdb_test "python print(i.decoded)" ".*"
     gdb_test "python print(i.size)" "$decimal"
     gdb_test "python print(i.is_speculative)" "False"
This page took 0.024596 seconds and 4 git commands to generate.