This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Run gdb.trace/ftrace.exp on `x86_64 -m64' and setup kfail
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Mon, 5 Mar 2012 23:34:49 +0800
- Subject: [patch] Run gdb.trace/ftrace.exp on `x86_64 -m64' and setup kfail
Hi,
The original condition in ftrace.exp is `is_x86_like_target',
which return 1 if target is an x86 or x86_64 with -m32. I
can't see any reason why this case can't run on `x86_64 -m64'.
This patch is to relax this condition a little.
After changing this condition, I got two FAILs on x86_64-linux.
Open PR 13808 to track them, and set up KFAIL in test case.
http://sourceware.org/bugzilla/show_bug.cgi?id=13808
OK to apply?
--
Yao (éå)
diff --git a/gdb/testsuite/gdb.trace/ftrace.exp b/gdb/testsuite/gdb.trace/ftrace.exp
index beeccb9..6691318 100644
--- a/gdb/testsuite/gdb.trace/ftrace.exp
+++ b/gdb/testsuite/gdb.trace/ftrace.exp
@@ -86,7 +86,7 @@ proc test_fast_tracepoints {} {
gdb_test "print gdb_agent_gdb_trampoline_buffer_error" ".*" ""
- if { [is_x86_like_target] } {
+ if { [istarget "x86_64-*-linux*"] || [istarget "i\[34567\]86-*-linux*"] } {
gdb_test "ftrace set_point" "Fast tracepoint .*" \
"fast tracepoint at a long insn"
@@ -134,11 +134,13 @@ proc test_fast_tracepoints {} {
gdb_test "tfind pc *set_point" "Found trace frame .*" \
"tfind set_point frame, first time"
+ setup_kfail_for_target "gdb/13808" "x86_64-*-linux*"
gdb_test "print globvar" " = 1"
gdb_test "tfind pc *set_point" "Found trace frame .*" \
"tfind set_point frame, second time"
+ setup_kfail_for_target "gdb/13808" "x86_64-*-linux*"
gdb_test "print anarg" " = 200"
gdb_test "tfind start" "Found trace frame .*" \