-# 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
"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" "^$" \