Index: gdb/testsuite/gdb.python/py-prettyprint.exp |
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp |
index dc4116be2973cc0d0fe6fd0460e492edf59ea0e1..22af83c5905496dba71246a42a82cf233b44ea85 100644 |
--- a/gdb/testsuite/gdb.python/py-prettyprint.exp |
+++ b/gdb/testsuite/gdb.python/py-prettyprint.exp |
@@ -16,15 +16,9 @@ |
# This file is part of the GDB testsuite. It tests Python-based |
# pretty-printing for the CLI. |
-if $tracelevel then { |
- strace $tracelevel |
-} |
- |
load_lib gdb-python.exp |
-set testfile "py-prettyprint" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile |
# Start with a fresh gdb. |
gdb_exit |
@@ -129,14 +123,19 @@ if ![runto_main ] then { |
return |
} |
-gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \ |
- ".*Breakpoint.*" |
-gdb_test "continue" ".*Breakpoint.*" |
- |
set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py] |
gdb_test_no_output "python execfile ('${remote_python_file}')" |
+gdb_breakpoint [gdb_get_line_number "eval-break"] |
+gdb_continue_to_breakpoint "eval-break" ".* eval-break .*" |
+ |
+gdb_test "info locals" "eval9 = eval=<123456789>" |
+ |
+gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \ |
+ ".*Breakpoint.*" |
+gdb_test "continue" ".*Breakpoint.*" |
+ |
gdb_test "print ss" " = a=< a=<1> b=<$hex>> b=< a=<2> b=<$hex>>" \ |
"print ss enabled #1" |