* gdb.trace/backtrace.exp: Adjust for x86 and x86_64.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.trace / while-dyn.exp
index b279c108c8b9c2693fae09aa034a6acb13a8ab82..d379e1dc0dc82c8bd44842857e7415e8f1179c35 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright 1998, 2007, 2008, 2009 Free Software Foundation, Inc.
+#   Copyright 1998, 2007, 2008, 2009, 2010 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
@@ -63,9 +63,17 @@ gdb_test "trace gdb_c_test" \
        "Tracepoint $decimal at .*" \
        "Set tracepoint at gdb_c_test"
 
+if [istarget "x86_64-*"] then {
+    set fpreg "\$rbp"
+} elseif [istarget "i?86-*"] then {
+    set fpreg "\$ebp"
+} else {
+    set fpreg "\$fp"
+}
+
 gdb_trace_setactions "5.12: define while-stepping <stepcount>" \
        "" \
-       "collect \$fp" "^$" \
+       "collect $fpreg" "^$" \
        "while-stepping 5" "^$" \
        "collect p" "^$" \
        "end" "^$" \
This page took 0.025855 seconds and 4 git commands to generate.