]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / loclists-sec-offset.exp
index 573324af3d17ea2e84330c54ed77710feb6cf5a0..ff55e24c4f79adb2e488f516e97b82dccebdeda7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2020 Free Software Foundation, Inc.
+# Copyright 2020-2024 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
@@ -18,9 +18,7 @@
 
 load_lib dwarf.exp
 
-if {![dwarf2_support]} {
-    return 0
-}
+require dwarf2_support
 
 # Test with 32-bit and 64-bit DWARF.
 foreach_with_prefix is_64 {false true} {
@@ -165,10 +163,10 @@ foreach_with_prefix is_64 {false true} {
            }
        }
 
-       loclists -is-64 $is_64 {
+       loclists {is-64 $is_64} {
            # The lists in this table are accessed by direct offset
            # (DW_FORM_sec_offset).
-           table {
+           table {} {
                foo_location_list: list_ {
                    start_length $func1_addr $func1_len {
                        DW_OP_constu 0x123456
@@ -182,7 +180,7 @@ foreach_with_prefix is_64 {false true} {
                }
            }
 
-           table -post-header-label cu2_table {
+           table {post-header-label cu2_table} {
                bar_location_list: list_ {
                    start_length $func3_addr $func3_len {
                        DW_OP_constu 0x345678
@@ -196,7 +194,7 @@ foreach_with_prefix is_64 {false true} {
                }
            }
 
-           table -with-offset-array false {
+           table {with-offset-array false} {
                baz_location_list: list_ {
                    start_length $func5_addr $func5_len {
                        DW_OP_constu 0x567890
@@ -218,7 +216,6 @@ foreach_with_prefix is_64 {false true} {
     }
 
     if { ![runto_main] } {
-       fail "can't run to main"
        return
     }