[testsuite][AArch64] Port gdb.trace
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.trace / backtrace.exp
index c3a7ec3d0d52127fe52d5900724bfc56c60c9a7d..f69089b7e5a69ea039e6f492d6bf4faa7f7332a9 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright 1998-2013 Free Software Foundation, Inc.
+#   Copyright 1998-2015 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -146,6 +146,9 @@ if [is_amd64_regs_target] {
 } elseif [is_x86_like_target] {
     set fpreg "\$ebp"
     set spreg "\$esp"
+} elseif [is_aarch64_target] {
+    set fpreg "\$x29"
+    set spreg "\$sp"
 } else {
     set fpreg "\$fp"
     set spreg "\$sp"
@@ -256,11 +259,8 @@ proc gdb_backtrace_tdp_4 { msg depth traceframe } {
 
        # Output of 'tdump' on frame 0 and frame 1 should be
        # identical.
-       if ![string compare $output_string0 $output_string1]  {
-           pass "tdump output"
-       } else {
-           fail "tdump output"
-       }
+       gdb_assert ![string compare $output_string0 $output_string1] \
+           "tdump output"
     }
 }
 
This page took 0.041316 seconds and 4 git commands to generate.