Update copyright year range in all GDB files
[binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-unresolved.exp
index b1038e23e634488f3aac2a57f2db60b66089cf89..e1abb2c1eeec450999914455b0e2c367aa734c71 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2009-2013 Free Software Foundation, Inc.
+# Copyright 2009-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
@@ -19,7 +19,12 @@ if {![dwarf2_support]} {
     return 0  
 }
 
-if { [prepare_for_testing dw2-unresolved.exp "dw2-unresolved" {dw2-unresolved-main.c dw2-unresolved.S} {nodebug}] } {
+# Some targets have leading underscores on assembly symbols.
+set additional_flags [gdb_target_symbol_prefix_flags_asm]
+
+if { [prepare_for_testing "failed to prepare" "dw2-unresolved" \
+       {dw2-unresolved-main.c dw2-unresolved.S} \
+       [list nodebug $additional_flags]] } {
     return -1
 }