]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.trace/pending.exp
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.trace / pending.exp
index bb039df4bd5c002fd6c5470bcaf1aed957d8d739..bbff2238f53f4a116dff067de9b6c594681138b7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2011-2018 Free Software Foundation, Inc.
+# Copyright 2011-2021 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
@@ -18,6 +18,11 @@ if {[skip_shlib_tests]} {
     return 0
 }
 
+if ![gdb_trace_common_supports_arch] {
+    unsupported "no trace-common.h support for arch"
+    return -1
+}
+
 standard_testfile
 set libfile1 "pendshr1"
 set libfile2 "pendshr2"
@@ -85,7 +90,7 @@ proc pending_tracepoint_resolved { trace_type } {
 
        gdb_load ${binfile}
 
-       gdb_test "break main" "Breakpoint.*at.* file .*$srcfile, line.*" \
+       gdb_test "break -q main" "Breakpoint.*at.* file .*$srcfile, line.*" \
            "breakpoint function"
 
        gdb_run_cmd
@@ -127,7 +132,7 @@ proc pending_tracepoint_works { trace_type } {
            "single pending tracepoint info"
 
        # Run to main which should resolve a pending tracepoint
-       gdb_test "break main" "Breakpoint.*at.* file .*$srcfile, line.*" \
+       gdb_test "break -q main" "Breakpoint.*at.* file .*$srcfile, line.*" \
            "breakpoint function"
        gdb_run_cmd
        gdb_test "" "Breakpoint 2, main.*"