Test run by user on Sat Apr 4 13:41:33 2020 Native configuration is aarch64-unknown-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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp ... get_compiler_info: gcc-7-4-0 Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -g -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -g -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold0.o -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold0.o -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold... (gdb) Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -w -c -g -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/is_64_target-54423.o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/is_64_target-54423.c (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -w -c -g -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/is_64_target-54423.o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/is_64_target-54423.c print /d sizeof (int) $1 = 4 (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: get integer valueof "sizeof (int)" Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p main_label - main $1 = 8 (gdb) disassemble main Dump of assembler code for function main: 0x000000000000073c <+0>: stp x29, x30, [sp, #-16]! 0x0000000000000740 <+4>: mov x29, sp 0x0000000000000744 <+8>: bl 0x70c 0x0000000000000748 <+12>: mov w0, #0x0 // #0 0x000000000000074c <+16>: ldp x29, x30, [sp], #16 0x0000000000000750 <+20>: ret End of assembler dump. (gdb) x/2i main+20 0x750 : ret 0x754 : .inst 0x00000000 ; undefined (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p foo_label - foo $1 = 8 (gdb) disassemble foo Dump of assembler code for function foo: 0x000000000000070c <+0>: stp x29, x30, [sp, #-16]! 0x0000000000000710 <+4>: mov x29, sp 0x0000000000000714 <+8>: bl 0x704 0x0000000000000718 <+12>: adrp x0, 0x11000 0x000000000000071c <+16>: add x0, x0, #0x14 0x0000000000000720 <+20>: ldr w0, [x0] 0x0000000000000724 <+24>: cmp w0, #0x0 0x0000000000000728 <+28>: b.eq 0x730 // b.none 0x000000000000072c <+32>: bl 0x6ec 0x0000000000000730 <+36>: nop 0x0000000000000734 <+40>: ldp x29, x30, [sp], #16 0x0000000000000738 <+44>: ret End of assembler dump. (gdb) x/2i foo+44 0x738 : ret 0x73c
: stp x29, x30, [sp, #-16]! (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p foo_cold_label - foo_cold $1 = 8 (gdb) disassemble foo_cold Dump of assembler code for function foo_cold: 0x00000000000006ec <+0>: stp x29, x30, [sp, #-16]! 0x00000000000006f0 <+4>: mov x29, sp 0x00000000000006f4 <+8>: bl 0x6e4 0x00000000000006f8 <+12>: nop 0x00000000000006fc <+16>: ldp x29, x30, [sp], #16 0x0000000000000700 <+20>: ret End of assembler dump. (gdb) x/2i foo_cold+20 0x700 : ret 0x704 : nop (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p bar_label - bar $1 = 0 (gdb) disassemble bar Dump of assembler code for function bar: 0x0000000000000704 <+0>: nop 0x0000000000000708 <+4>: ret End of assembler dump. (gdb) x/2i bar+4 0x708 : ret 0x70c : stp x29, x30, [sp, #-16]! (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p baz_label - baz $1 = 0 (gdb) disassemble baz Dump of assembler code for function baz: 0x00000000000006e4 <+0>: nop 0x00000000000006e8 <+4>: ret End of assembler dump. (gdb) x/2i baz+4 0x6e8 : ret 0x6ec : stp x29, x30, [sp, #-16]! (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/target_symbol_prefix-54423.c -fdiagnostics-color=never -w -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/target_symbol_prefix-54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/target_symbol_prefix-54423.c -fdiagnostics-color=never -w -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/target_symbol_prefix-54423.x Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold1.o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold-dw2.S (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold1.o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold-dw2.S Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold1.o -fdiagnostics-color=never -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold1.o -fdiagnostics-color=never -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold... (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x744: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c, line 78. (gdb) run Starting program: /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Breakpoint 1, main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:78 78 foo (); /* main foo call */ (gdb) info line main Line 76 of "/home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c" starts at address 0xaaaaaaaaa73c
and ends at 0xaaaaaaaaa744 . (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: info line main break 68 Breakpoint 2 at 0xaaaaaaaaa714: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c, line 68. (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-1: break at call to bar continue Continuing. Breakpoint 2, foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:68 68 bar (); /* foo bar call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-1: continue to call of bar step bar () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:62 62 } /* bar end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-1: step into bar step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:70 70 if (e) foo_cold (); /* foo foo_cold call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-1: step out of bar, back into foo spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold... (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x744: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c, line 78. (gdb) run Starting program: /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Breakpoint 1, main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:78 78 foo (); /* main foo call */ (gdb) break foo Breakpoint 2 at 0xaaaaaaaaa714: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c, line 68. (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-2: break foo continue Continuing. Breakpoint 2, foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:68 68 bar (); /* foo bar call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-2: continue to foo step bar () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:62 62 } /* bar end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-2: step into bar step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:70 70 if (e) foo_cold (); /* foo foo_cold call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-2: step out of bar, back into foo spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold... (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x744: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c, line 78. (gdb) run Starting program: /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Breakpoint 1, main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:78 78 foo (); /* main foo call */ (gdb) gdb_expect_list pattern: /Dump of assembler code for function foo:/ disassemble foo Dump of assembler code for function foo: Address range 0xaaaaaaaaa70c to 0xaaaaaaaaa73c: 0x0000aaaaaaaaa70c <+0>: stp x29, x30, [sp, #-16]! 0x0000aaaaaaaaa710 <+4>: mov x29, sp 0x0000aaaaaaaaa714 <+8>: bl 0xaaaaaaaaa704 gdb_expect_list pattern: /Address range 0x[0-9A-Fa-f]+ to 0x[0-9A-Fa-f]+:/ gdb_expect_list pattern: / 0x[0-9A-Fa-f]+ <\+0>:/ gdb_expect_list pattern: /Address range 0x[0-9A-Fa-f]+ to 0x[0-9A-Fa-f]+:/ 0x0000aaaaaaaaa718 <+12>: adrp x0, 0xaaaaaaabb000 0x0000aaaaaaaaa71c <+16>: add x0, x0, #0x14 0x0000aaaaaaaaa720 <+20>: ldr w0, [x0] 0x0000aaaaaaaaa724 <+24>: cmp w0, #0x0 0x0000aaaaaaaaa728 <+28>: b.eq 0xaaaaaaaaa730 // b.none 0x0000aaaaaaaaa72c <+32>: bl 0xaaaaaaaaa6ec 0x0000aaaaaaaaa730 <+36>: nop 0x0000aaaaaaaaa734 <+40>: ldp x29, x30, [sp], #16 0x0000aaaaaaaaa738 <+44>: ret Address range 0xaaaaaaaaa6ec to 0xaaaaaaaaa704: 0x0000aaaaaaaaa6ec <-32>: stp x29, x30, [sp, #-16]! 0x0000aaaaaaaaa6f0 <-28>: mov x29, sp 0x0000aaaaaaaaa6f4 <-24>: bl 0xaaaaaaaaa6e4 0x0000aaaaaaaaa6f8 <-20>: nop 0x0000aaaaaaaaa6fc <-16>: ldp x29, x30, [sp], #16 0x0000aaaaaaaaa700 <-12>: ret End of assembler dump. (gdb) gdb_expect_list pattern: / 0x[0-9A-Fa-f]+ <(.+?)>:/ gdb_expect_list pattern: /End of assembler dump\./ gdb_expect_list pattern: // PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: disassemble foo x/i foo_cold 0xaaaaaaaaa6ec : stp x29, x30, [sp, #-16]! (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: x/i foo_cold x/i foo 0xaaaaaaaaa70c : stp x29, x30, [sp, #-16]! (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: x/i foo PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: foo and foo_cold are at different addresses break foo Breakpoint 2 at 0xaaaaaaaaa714: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c, line 68. (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: break foo break baz Breakpoint 3 at 0xaaaaaaaaa6e4: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c, line 48. (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: break baz continue Continuing. Breakpoint 2, foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:68 68 bar (); /* foo bar call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: continue to foo set variable e=1 (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: set variable e=1 continue Continuing. Breakpoint 3, baz () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:48 48 } /* baz end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: continue to baz gdb_expect_list pattern: /[ ]#0 .*? baz \(\) / bt #0 baz () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:48 gdb_expect_list pattern: /[ ]#1 .*? foo \(\) / #1 0x0000aaaaaaaaa6f8 in foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:54 #2 0x0000aaaaaaaaa730 in foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:70 gdb_expect_list pattern: /[ ]#2 .*? foo \(\) / gdb_expect_list pattern: /[ ]#3 .*? main \(\) / #3 0x0000aaaaaaaaa748 in main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:78 gdb_expect_list pattern: // (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: no-cold-names: backtrace from baz x/2i foo_cold 0xaaaaaaaaa6ec : stp x29, x30, [sp, #-16]! 0xaaaaaaaaa6f0 : mov x29, sp (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: no-cold-names: x/2i foo_cold PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: no-cold-names: offset to foo_cold is not too large info line *foo_cold Line 52 of "/home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c" starts at address 0xaaaaaaaaa6ec and ends at 0xaaaaaaaaa6f4 . (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: no-cold-names: info line *foo_cold spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold... (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x744: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c, line 78. (gdb) run Starting program: /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-lo-cold Breakpoint 1, main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:78 78 foo (); /* main foo call */ (gdb) step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:68 68 bar (); /* foo bar call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: step into foo from main step bar () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:62 62 } /* bar end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: step into bar from foo step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:70 70 if (e) foo_cold (); /* foo foo_cold call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: step out of bar to foo set variable e=1 (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: set variable e=1 step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:54 54 baz (); /* foo_cold baz call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: step into foo_cold from foo step baz () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:48 48 } /* baz end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: step into baz from foo_cold step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:56 56 } /* foo_cold end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: step out of baz to foo_cold step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:72 72 } /* foo end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: step out of foo_cold to foo step main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-lo-cold.c:80 80 return 0; /* main return */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: lo-cold: step-test-3: step out of foo to main Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -g -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -g -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold0.o -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold0.o -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold... (gdb) print /d sizeof (int) $1 = 4 (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: get integer valueof "sizeof (int)" Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p main_label - main $1 = 8 (gdb) disassemble main Dump of assembler code for function main: 0x000000000000073c <+0>: stp x29, x30, [sp, #-16]! 0x0000000000000740 <+4>: mov x29, sp 0x0000000000000744 <+8>: bl 0x6e4 0x0000000000000748 <+12>: mov w0, #0x0 // #0 0x000000000000074c <+16>: ldp x29, x30, [sp], #16 0x0000000000000750 <+20>: ret End of assembler dump. (gdb) x/2i main+20 0x750 : ret 0x754 : .inst 0x00000000 ; undefined (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p foo_label - foo $1 = 8 (gdb) disassemble foo Dump of assembler code for function foo: 0x00000000000006e4 <+0>: stp x29, x30, [sp, #-16]! 0x00000000000006e8 <+4>: mov x29, sp 0x00000000000006ec <+8>: bl 0x714 0x00000000000006f0 <+12>: adrp x0, 0x11000 0x00000000000006f4 <+16>: add x0, x0, #0x14 0x00000000000006f8 <+20>: ldr w0, [x0] 0x00000000000006fc <+24>: cmp w0, #0x0 0x0000000000000700 <+28>: b.eq 0x708 // b.none 0x0000000000000704 <+32>: bl 0x71c 0x0000000000000708 <+36>: nop 0x000000000000070c <+40>: ldp x29, x30, [sp], #16 0x0000000000000710 <+44>: ret End of assembler dump. (gdb) x/2i foo+44 0x710 : ret 0x714 : nop (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p foo_cold_label - foo_cold $1 = 8 (gdb) disassemble foo_cold Dump of assembler code for function foo_cold: 0x000000000000071c <+0>: stp x29, x30, [sp, #-16]! 0x0000000000000720 <+4>: mov x29, sp 0x0000000000000724 <+8>: bl 0x734 0x0000000000000728 <+12>: nop 0x000000000000072c <+16>: ldp x29, x30, [sp], #16 0x0000000000000730 <+20>: ret End of assembler dump. (gdb) x/2i foo_cold+20 0x730 : ret 0x734 : nop (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p bar_label - bar $1 = 0 (gdb) disassemble bar Dump of assembler code for function bar: 0x0000000000000714 <+0>: nop 0x0000000000000718 <+4>: ret End of assembler dump. (gdb) x/2i bar+4 0x718 : ret 0x71c : stp x29, x30, [sp, #-16]! (gdb) Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c -fdiagnostics-color=never -g -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) set height 0 (gdb) set width 0 (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/temp/54423/func_addr54423.x... (gdb) p baz_label - baz $1 = 0 (gdb) disassemble baz Dump of assembler code for function baz: 0x0000000000000734 <+0>: nop 0x0000000000000738 <+4>: ret End of assembler dump. (gdb) x/2i baz+4 0x738 : ret 0x73c
: stp x29, x30, [sp, #-16]! (gdb) Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c Executing on host: gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold1.o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold-dw2.S (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold1.o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold-dw2.S Executing on host: gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold1.o -fdiagnostics-color=never -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold (timeout = 300) spawn -ignore SIGHUP gcc -fno-stack-protector /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold0.o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold1.o -fdiagnostics-color=never -lm -o /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold... (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x744: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c, line 78. (gdb) run Starting program: /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Breakpoint 1, main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:78 78 foo (); /* main foo call */ (gdb) info line main Line 76 of "/home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c" starts at address 0xaaaaaaaaa73c
and ends at 0xaaaaaaaaa744 . (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: info line main break 48 Breakpoint 2 at 0xaaaaaaaaa6ec: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c, line 48. (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-1: break at call to bar continue Continuing. Breakpoint 2, foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:48 48 bar (); /* foo bar call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-1: continue to call of bar step bar () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:58 58 } /* bar end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-1: step into bar step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:50 50 if (e) foo_cold (); /* foo foo_cold call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-1: step out of bar, back into foo spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold... (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x744: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c, line 78. (gdb) run Starting program: /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Breakpoint 1, main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:78 78 foo (); /* main foo call */ (gdb) break foo Breakpoint 2 at 0xaaaaaaaaa6ec: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c, line 48. (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-2: break foo continue Continuing. Breakpoint 2, foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:48 48 bar (); /* foo bar call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-2: continue to foo step bar () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:58 58 } /* bar end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-2: step into bar step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:50 50 if (e) foo_cold (); /* foo foo_cold call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-2: step out of bar, back into foo spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold... (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x744: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c, line 78. (gdb) run Starting program: /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Breakpoint 1, main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:78 78 foo (); /* main foo call */ (gdb) gdb_expect_list pattern: /Dump of assembler code for function foo:/ disassemble foo Dump of assembler code for function foo: Address range 0xaaaaaaaaa6e4 to 0xaaaaaaaaa714: gdb_expect_list pattern: /Address range 0x[0-9A-Fa-f]+ to 0x[0-9A-Fa-f]+:/ gdb_expect_list pattern: / 0x[0-9A-Fa-f]+ <\+0>:/ 0x0000aaaaaaaaa6e4 <+0>: stp x29, x30, [sp, #-16]! 0x0000aaaaaaaaa6e8 <+4>: mov x29, sp 0x0000aaaaaaaaa6ec <+8>: bl 0xaaaaaaaaa714 0x0000aaaaaaaaa6f0 <+12>: adrp x0, 0xaaaaaaabb000 0x0000aaaaaaaaa6f4 <+16>: add x0, x0, #0x14 0x0000aaaaaaaaa6f8 <+20>: ldr w0, [x0] 0x0000aaaaaaaaa6fc <+24>: cmp w0, #0x0 0x0000aaaaaaaaa700 <+28>: b.eq 0xaaaaaaaaa708 // b.none 0x0000aaaaaaaaa704 <+32>: bl 0xaaaaaaaaa71c 0x0000aaaaaaaaa708 <+36>: nop 0x0000aaaaaaaaa70c <+40>: ldp x29, x30, [sp], #16 0x0000aaaaaaaaa710 <+44>: ret gdb_expect_list pattern: /Address range 0x[0-9A-Fa-f]+ to 0x[0-9A-Fa-f]+:/ Address range 0xaaaaaaaaa71c to 0xaaaaaaaaa734: 0x0000aaaaaaaaa71c <+56>: stp x29, x30, [sp, #-16]! 0x0000aaaaaaaaa720 <+60>: mov x29, sp 0x0000aaaaaaaaa724 <+64>: bl 0xaaaaaaaaa734 0x0000aaaaaaaaa728 <+68>: nop gdb_expect_list pattern: / 0x[0-9A-Fa-f]+ <(.+?)>:/ gdb_expect_list pattern: /End of assembler dump\./ 0x0000aaaaaaaaa72c <+72>: ldp x29, x30, [sp], #16 0x0000aaaaaaaaa730 <+76>: ret End of assembler dump. (gdb) gdb_expect_list pattern: // PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: disassemble foo x/i foo_cold 0xaaaaaaaaa71c : stp x29, x30, [sp, #-16]! (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: x/i foo_cold x/i foo 0xaaaaaaaaa6e4 : stp x29, x30, [sp, #-16]! (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: x/i foo PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: foo and foo_cold are at different addresses break foo Breakpoint 2 at 0xaaaaaaaaa6ec: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c, line 48. (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: break foo break baz Breakpoint 3 at 0xaaaaaaaaa734: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c, line 72. (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: break baz continue Continuing. Breakpoint 2, foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:48 48 bar (); /* foo bar call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: continue to foo set variable e=1 (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: set variable e=1 continue Continuing. Breakpoint 3, baz () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:72 72 } /* baz end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: continue to baz gdb_expect_list pattern: /[ ]#0 .*? baz \(\) / bt #0 baz () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:72 gdb_expect_list pattern: /[ ]#1 .*? foo \(\) / #1 0x0000aaaaaaaaa728 in foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:64 #2 0x0000aaaaaaaaa708 in foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:50 gdb_expect_list pattern: /[ ]#2 .*? foo \(\) / gdb_expect_list pattern: /[ ]#3 .*? main \(\) / #3 0x0000aaaaaaaaa748 in main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:78 (gdb) gdb_expect_list pattern: // PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: no-cold-names: backtrace from baz x/2i foo_cold 0xaaaaaaaaa71c : stp x29, x30, [sp, #-16]! 0xaaaaaaaaa720 : mov x29, sp (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: no-cold-names: x/2i foo_cold PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: no-cold-names: offset to foo_cold is not too large info line *foo_cold Line 62 of "/home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c" starts at address 0xaaaaaaaaa71c and ends at 0xaaaaaaaaa724 . (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: no-cold-names: info line *foo_cold spawn /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (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/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2 Source directories searched: /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2:$cdir:$cwd (gdb) kill The program is not being run. (gdb) file /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Reading symbols from /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold... (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x744: file /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c, line 78. (gdb) run Starting program: /home/user/build/binutils-gdb-master/gdb/testsuite/outputs/gdb.dwarf2/dw2-ranges-func/dw2-ranges-func-hi-cold Breakpoint 1, main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:78 78 foo (); /* main foo call */ (gdb) step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:48 48 bar (); /* foo bar call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: step into foo from main step bar () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:58 58 } /* bar end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: step into bar from foo step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:50 50 if (e) foo_cold (); /* foo foo_cold call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: step out of bar to foo set variable e=1 (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: set variable e=1 step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:64 64 baz (); /* foo_cold baz call */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: step into foo_cold from foo step baz () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:72 72 } /* baz end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: step into baz from foo_cold step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:66 66 } /* foo_cold end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: step out of baz to foo_cold step foo () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:52 52 } /* foo end */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: step out of foo_cold to foo step main () at /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func-hi-cold.c:80 80 return 0; /* main return */ (gdb) PASS: gdb.dwarf2/dw2-ranges-func.exp: hi-cold: step-test-3: step out of foo to main testcase /home/user/build/binutils-gdb-master/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp completed in 3 seconds === gdb Summary === # of expected passes 64 Executing on host: /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory --version (timeout = 300) spawn -ignore SIGHUP /home/user/build/binutils-gdb-master/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory --version GNU gdb (GDB) 10.0.50.20200319-git Copyright (C) 2020 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/user/build/binutils-gdb-master/gdb/gdb version 10.0.50.20200319-git -nw -nx -data-directory /home/user/build/binutils-gdb-master/gdb/testsuite/../data-directory runtest completed at Sat Apr 4 13:41:36 2020