aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-07-17 13:06:42 +0200
committerTom de Vries <tdevries@suse.de>2020-07-17 13:06:42 +0200
commit315e6afc824fcc7689dd8f51cbb2d18e97fb5374 (patch)
tree8af8be41e327149b056a042bfa8e6857267b092f /gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp
parenta26a62b1979400374d890811735a9c32f451ae31 (diff)
downloadgdb-315e6afc824fcc7689dd8f51cbb2d18e97fb5374.zip
gdb-315e6afc824fcc7689dd8f51cbb2d18e97fb5374.tar.gz
gdb-315e6afc824fcc7689dd8f51cbb2d18e97fb5374.tar.bz2
[gdb/testsuite] Remove Dwarf::extern
The file lib/dwarf.exp contains: ... # Declare a global label. This is typically used to refer to # labels defined in other files, for example a function defined in # a .c file. proc extern {args} { foreach name $args { _op .global $name } } ... The assembler directive to refer to labels defined in other files is not .global, but .extern, and that one is ignored by gas. Since we require gas for all dwarf assembly test-cases, remove the proc and all it's uses. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-07-17 Tom de Vries <tdevries@suse.de> * lib/dwarf.exp (Dwarf::extern): Remove. * gdb.compile/compile-ops.exp: Remove use of Dwarf::extern. * gdb.dlang/circular.exp: Same. * gdb.dwarf2/comp-unit-lang.exp: Same. * gdb.dwarf2/dw2-ifort-parameter.exp: Same. * gdb.dwarf2/dw2-symtab-includes.exp: Same. * gdb.dwarf2/dwz.exp: Same. * gdb.dwarf2/imported-unit-abstract-const-value.exp: Same. * gdb.dwarf2/imported-unit-runto-main.exp: Same. * gdb.dwarf2/imported-unit.exp: Same. * gdb.dwarf2/opaque-type-lookup.exp: Same.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp b/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp
index 8ff6b73..2ebe6ca 100644
--- a/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp
+++ b/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp
@@ -42,8 +42,6 @@ proc do_test {cu_lang gdb_lang} {
# Creating a CU with 4-byte addresses lets this test link on
# both 32- and 64-bit machines.
cu { addr_size 4 } {
- extern func_start func_end
-
compile_unit {
{name file1.txt}
{language @$cu_lang}