aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-noloc.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-noloc.exp62
1 files changed, 32 insertions, 30 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp b/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
index 09621d3..f7d7efe 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
@@ -33,49 +33,51 @@ if { [prepare_for_testing dw2-noloc.exp "dw2-noloc" {dw2-noloc-main.c dw2-noloc.
# unresolvable: .symtab entry does not exist for this symbol name.
# DW_AT_declaration is not present in any of these DIEs.
-proc file_symbols {type} { with_test_prefix "$type" {
+proc file_symbols {type} {
+ with_test_prefix "$type" {
- global gdb_prompt
+ global gdb_prompt
- gdb_test "print file_locaddr_resolvable" "= 1234567890"
- gdb_test "ptype file_locaddr_resolvable" "type = int"
+ gdb_test "print file_locaddr_resolvable" "= 1234567890"
+ gdb_test "ptype file_locaddr_resolvable" "type = int"
- gdb_test "print file_locaddr_unresolvable" "= 1234567890"
- gdb_test "ptype file_locaddr_unresolvable" "type = int"
+ gdb_test "print file_locaddr_unresolvable" "= 1234567890"
+ gdb_test "ptype file_locaddr_unresolvable" "type = int"
- gdb_test "print file_locempty_resolvable" "= <optimized out>"
- gdb_test "ptype file_locempty_resolvable" "type = int"
+ gdb_test "print file_locempty_resolvable" "= <optimized out>"
+ gdb_test "ptype file_locempty_resolvable" "type = int"
- gdb_test "print file_locempty_unresolvable" "= <optimized out>"
- gdb_test "ptype file_locempty_unresolvable" "type = int"
+ gdb_test "print file_locempty_unresolvable" "= <optimized out>"
+ gdb_test "ptype file_locempty_unresolvable" "type = int"
- gdb_test "print file_locno_resolvable" "= <optimized out>"
- gdb_test "ptype file_locno_resolvable" "type = int"
+ gdb_test "print file_locno_resolvable" "= <optimized out>"
+ gdb_test "ptype file_locno_resolvable" "type = int"
- gdb_test "print file_locno_unresolvable" "= <optimized out>"
- gdb_test "ptype file_locno_unresolvable" "type = int"
+ gdb_test "print file_locno_unresolvable" "= <optimized out>"
+ gdb_test "ptype file_locno_unresolvable" "type = int"
- gdb_test "print file_extern_locaddr_resolvable" "= 1234567890"
- gdb_test "ptype file_extern_locaddr_resolvable" "type = int"
+ gdb_test "print file_extern_locaddr_resolvable" "= 1234567890"
+ gdb_test "ptype file_extern_locaddr_resolvable" "type = int"
- gdb_test "print file_extern_locaddr_unresolvable" "= 1234567890"
- gdb_test "ptype file_extern_locaddr_unresolvable" "type = int"
+ gdb_test "print file_extern_locaddr_unresolvable" "= 1234567890"
+ gdb_test "ptype file_extern_locaddr_unresolvable" "type = int"
- gdb_test "print file_extern_locempty_resolvable" "= <optimized out>"
- gdb_test "ptype file_extern_locempty_resolvable" "type = int"
+ gdb_test "print file_extern_locempty_resolvable" "= <optimized out>"
+ gdb_test "ptype file_extern_locempty_resolvable" "type = int"
- gdb_test "print file_extern_locempty_unresolvable" "= <optimized out>"
- gdb_test "ptype file_extern_locempty_unresolvable" "type = int"
+ gdb_test "print file_extern_locempty_unresolvable" "= <optimized out>"
+ gdb_test "ptype file_extern_locempty_unresolvable" "type = int"
- gdb_test "print file_extern_locno_resolvable" "= 1234567890"
- gdb_test "ptype file_extern_locno_resolvable" "type = int"
+ gdb_test "print file_extern_locno_resolvable" "= 1234567890"
+ gdb_test "ptype file_extern_locno_resolvable" "type = int"
- # `print file_extern_locno_unresolvable' currently prints
- # Address of symbol "file_extern_locno_unresolvable" is unknown.
- # As DW_AT_declaration is not present in this DIE
- # it should print <optimized out>. As usefulness of such DIE is not
- # clear its resolution is not being tested.
-}}
+ # `print file_extern_locno_unresolvable' currently prints
+ # Address of symbol "file_extern_locno_unresolvable" is unknown.
+ # As DW_AT_declaration is not present in this DIE
+ # it should print <optimized out>. As usefulness of such DIE is not
+ # clear its resolution is not being tested.
+ }
+}
file_symbols no-run