Test run by gwenthekween on Tue May 19 16:25:14 2026 Native configuration is x86_64-pc-linux-gnu === gdb tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../../downstream-gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../../downstream-gdb/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp ... Executing on build: rm -rf /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index (timeout = 300) builtin_spawn -ignore SIGHUP rm -rf /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index gdb_do_cache: universal_compile_options_c ( ) Executing on host: gcc -fdiagnostics-color=never -c -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/ccopts.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/ccopts.c (timeout = 300) builtin_spawn -ignore SIGHUP gcc -fdiagnostics-color=never -c -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/ccopts.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/ccopts.c gdb_do_cache: get_compiler_info_1 ( c ) get_compiler_info: gcc-15-2-1 gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) Executing on host: gcc -fno-stack-protector /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../../downstream-gdb/gdb/testsuite/gdb.dwarf2/_start.c -fdiagnostics-color=never -g -nostartfiles -lm -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/func_addr.x (timeout = 300) builtin_spawn -ignore SIGHUP gcc -fno-stack-protector /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../../downstream-gdb/gdb/testsuite/gdb.dwarf2/_start.c -fdiagnostics-color=never -g -nostartfiles -lm -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/func_addr.x Starting logfile: /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/gdb.in.1 builtin_spawn /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex set height 0 -iex set width 0 -data-directory /home/gwenthekween/Documents/downstream-build/gdb/data-directory -iex set interactive-mode on (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/func_addr.x Reading symbols from /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/func_addr.x... (gdb) p _start_label - _start $1 = 4 (gdb) disassemble _start Dump of assembler code for function _start: 0x0000000000400330 <+0>: push %rbp 0x0000000000400331 <+1>: mov %rsp,%rbp 0x0000000000400334 <+4>: mov $0x0,%edi 0x0000000000400339 <+9>: call 0x400320 End of assembler dump. (gdb) with print asm-demangle on -- x/2i _start+9 0x400339 <_start+9>: call 0x400320 0x40033e: Cannot access memory at address 0x40033e (gdb) gdb_do_cache: is_64_target ( ) gdb_do_cache: universal_compile_options_c ( ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/is_64_target.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/is_64_target.c (timeout = 300) builtin_spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/is_64_target.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/temp/2515157/is_64_target.c gdb_do_cache: is_64_target ( ) gdb_do_cache: is_64_target ( ) gdb_do_cache: is_64_target ( ) gdb_do_cache: universal_compile_options_c ( ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index0.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names.S (timeout = 300) builtin_spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index0.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names.S gdb_do_cache: universal_compile_options_c ( ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index1.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../../downstream-gdb/gdb/testsuite/gdb.dwarf2/_start.c (timeout = 300) builtin_spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index1.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../../downstream-gdb/gdb/testsuite/gdb.dwarf2/_start.c gdb_do_cache: universal_compile_options_c ( ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) gdb_do_cache: get_compiler_info_1 ( c ) Executing on host: gcc -fno-stack-protector /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index0.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index1.o -fdiagnostics-color=never -nostartfiles -lm -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index (timeout = 300) builtin_spawn -ignore SIGHUP gcc -fno-stack-protector /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index0.o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index1.o -fdiagnostics-color=never -nostartfiles -lm -o /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index Starting logfile: /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/gdb.in.2 builtin_spawn /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex set height 0 -iex set width 0 -data-directory /home/gwenthekween/Documents/downstream-build/gdb/data-directory -iex set interactive-mode on (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir /home/gwenthekween/Documents/downstream-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/gwenthekween/Documents/downstream-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) show complaints Max number of complaints about incorrect symbols is 0. (gdb) set complaints 1 (gdb) maint set dwarf synchronous on (gdb) PASS: gdb.dwarf2/debug-names-bad-cu-index.exp: maint set dwarf synchronous on kill The program is not being run. (gdb) file /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index Reading symbols from /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index... warning: Section .debug_names has incorrect entry in CU table, ignoring .debug_names. (gdb) maint print objfiles debug-names-bad-cu-index Object file /home/gwenthekween/Documents/downstream-build/gdb/testsuite/outputs/gdb.dwarf2/debug-names-bad-cu-index/debug-names-bad-cu-index: Objfile at 0x36afb9e0, bfd at 0x3693ace0, 11 minsyms Cooked index in use: entries: [0] ((cooked_index_entry *) 0x7faaf8004400) name: _start canonical: _start qualified: _start DWARF tag: DW_TAG_subprogram flags: 0x0 [] DIE offset: 0xd CU index: 0 parent: ((cooked_index_entry *) 0) [1] ((cooked_index_entry *) 0x7faaf4006820) name: int canonical: int qualified: int DWARF tag: DW_TAG_base_type flags: 0x2 [IS_STATIC] DIE offset: 0x3e CU index: 1 parent: ((cooked_index_entry *) 0) [2] ((cooked_index_entry *) 0x7faaf40067f0) name: struct_with_int_member canonical: struct_with_int_member qualified: struct_with_int_member DWARF tag: DW_TAG_structure_type flags: 0x2 [IS_STATIC] DIE offset: 0x18 CU index: 1 parent: ((cooked_index_entry *) 0) [3] ((cooked_index_entry *) 0x36fc5250) name: int canonical: int qualified: int DWARF tag: DW_TAG_base_type flags: 0x2 [IS_STATIC] DIE offset: 0x3e CU index: 1 parent: ((cooked_index_entry *) 0) [4] ((cooked_index_entry *) 0x36fc5220) name: struct_with_int_member canonical: struct_with_int_member qualified: struct_with_int_member DWARF tag: DW_TAG_structure_type flags: 0x2 [IS_STATIC] DIE offset: 0x18 CU index: 1 parent: ((cooked_index_entry *) 0) main: ((cooked_index_entry *) 0) address maps: [0] ((addrmap *) 0x7faae4004220) [0x0] ((dwarf2_per_cu *) 0) [1] ((addrmap *) 0x7faadc004220) [0x0] ((dwarf2_per_cu *) 0) [2] ((addrmap *) 0x7fab08004220) [0x0] ((dwarf2_per_cu *) 0) [3] ((addrmap *) 0x7faaec004220) [0x0] ((dwarf2_per_cu *) 0) [4] ((addrmap *) 0x7fab00004220) [0x0] ((dwarf2_per_cu *) 0) [5] ((addrmap *) 0x7faae8004220) [0x0] ((dwarf2_per_cu *) 0) [6] ((addrmap *) 0x7faaf8004430) [0x0] ((dwarf2_per_cu *) 0) [7] ((addrmap *) 0x7faaf4006850) [0x0] ((dwarf2_per_cu *) 0) [8] ((addrmap *) 0x36fc5280) [0x0] ((dwarf2_per_cu *) 0) [0x400330] ((dwarf2_per_cu *) 0x7faaf40040e0) [0x40033e] ((dwarf2_per_cu *) 0) (gdb) PASS: gdb.dwarf2/debug-names-bad-cu-index.exp: find index type PASS: gdb.dwarf2/debug-names-bad-cu-index.exp: find index type, check type is valid FAIL: gdb.dwarf2/debug-names-bad-cu-index.exp: .debug_names used FAIL: gdb.dwarf2/debug-names-bad-cu-index.exp: saw complaint set complaints 0 (gdb) testcase /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../../downstream-gdb/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp completed in 0 seconds === gdb Summary === # of expected passes 3 # of unexpected failures 2 Executing on host: /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex "set height 0" -iex "set width 0" -data-directory /home/gwenthekween/Documents/downstream-build/gdb/data-directory -iex "set interactive-mode on" --version (timeout = 300) builtin_spawn -ignore SIGHUP /home/gwenthekween/Documents/downstream-build/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex set height 0 -iex set width 0 -data-directory /home/gwenthekween/Documents/downstream-build/gdb/data-directory -iex set interactive-mode on --version GNU gdb (GDB) 18.0.50.20260513-git Copyright (C) 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. /home/gwenthekween/Documents/downstream-build/gdb/gdb version 18.0.50.20260513-git -nw -nx -q -iex "set height 0" -iex "set width 0" -data-directory /home/gwenthekween/Documents/downstream-build/gdb/data-directory -iex "set interactive-mode on" runtest completed at Tue May 19 16:25:14 2026