]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.trace/ftrace.exp
Update years in copyright notice for the GDB files.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.trace / ftrace.exp
index beeccb9f9a18982f6d64808eefd29ba80af8ee64..5a2d02fbb364d1a4cd17f1cd8ae504921f1572bc 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2011-2012 Free Software Foundation, Inc.
+# Copyright 2011-2013 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
 # the Free Software Foundation; either version 3 of the License, or
 
 load_lib "trace-support.exp";
 
-set testfile "ftrace"
+standard_testfile
 set executable $testfile
-set srcfile $testfile.c
-set binfile $objdir/$subdir/$testfile
 set expfile $testfile.exp
 
 # Some targets have leading underscores on assembly symbols.
@@ -39,7 +37,7 @@ if ![gdb_target_supports_trace] {
     return -1
 }
 
-set libipa $objdir/../gdbserver/libinproctrace.so
+set libipa [get_in_proc_agent]
 gdb_load_shlibs $libipa
 
 # Can't use prepare_for_testing, because that splits compiling into
@@ -86,7 +84,7 @@ proc test_fast_tracepoints {} {
 
     gdb_test "print gdb_agent_gdb_trampoline_buffer_error" ".*" ""
 
-    if { [is_x86_like_target] } {
+    if { [istarget "x86_64-*-*"] || [istarget "i\[34567\]86-*-*"] } {
 
        gdb_test "ftrace set_point" "Fast tracepoint .*" \
            "fast tracepoint at a long insn"
@@ -134,11 +132,13 @@ proc test_fast_tracepoints {} {
        gdb_test "tfind pc *set_point" "Found trace frame .*" \
            "tfind set_point frame, first time"
 
+       setup_kfail "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 "gdb/13808" "x86_64-*-linux*"
        gdb_test "print anarg" " = 200"
 
        gdb_test "tfind start" "Found trace frame .*" \
@@ -164,7 +164,7 @@ proc test_fast_tracepoints {} {
 
 gdb_reinitialize_dir $srcdir/$subdir
 
-if { [gdb_test "info sharedlibrary" ".*libinproctrace\.so.*" "IPA loaded"] != 0 } {
+if { [gdb_test "info sharedlibrary" ".*${libipa}.*" "IPA loaded"] != 0 } {
     untested "Could not find IPA lib loaded"
     return 1
 }