GNU gdb (Gentoo 9.1 vanilla) 9.1 [trimmer] Reading symbols from x86_64-pc-linux-gnu-g++... Breakpoint 1 at 0x432a60: file /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/diagnostic.c, line 1706. [removed failed break attempts] (gdb) b /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/cp-gimplify.c:667 No source file named /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/cp-gimplify.c. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 2 (/var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/cp-gimplify.c:667) pending. (gdb) b cp_gimplify_expr Function "cp_gimplify_expr" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 3 (cp_gimplify_expr) pending. (gdb) r Starting program: /usr/bin/x86_64-pc-linux-gnu-g++ -fvisibility-inlines-hidden -Os -pipe -fomit-frame-pointer -std=c++14 -fPIC -m64 -pthread -finline-functions -Wno-inline -Wall -fvisibility=hidden -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I. -c -o instantiate_predef_macros.o instantiate_predef_macros.ii [Attaching after process 20099 vfork to child process 20103] [New inferior 2 (process 20103)] [Detaching vfork parent process 20099 after child exec] [Inferior 1 (process 20099) detached] process 20103 is executing new program: /usr/libexec/gcc/x86_64-pc-linux-gnu/10.1.0/cc1plus [Switching to process 20103] Thread 2.1 "cc1plus" hit Breakpoint 2, cp_gimplify_expr (expr_p=0x7fffef78d6c0, pre_p=0x7fffffffd1d8, post_p=0x7fffffffd0c8) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/cp-gimplify.c:668 668 { (gdb) bt #0 cp_gimplify_expr (expr_p=0x7fffef78d6c0, pre_p=0x7fffffffd1d8, post_p=0x7fffffffd0c8) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/cp-gimplify.c:668 #1 0x00000000009f49fc in gimplify_expr (expr_p=0x7fffef78d6c0, pre_p=, post_p=, gimple_test_f=, fallback=) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/gimplify.c:13516 #2 0x00000000009f98d9 in gimplify_stmt (seq_p=0x7fffffffd1d8, stmt_p=0x7fffef78d6c0) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/gimplify.c:6825 #3 gimplify_body (fndecl=0x7fffef78d600, do_parms=) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/gimplify.c:14857 #4 0x00000000009f9d16 in gimplify_function_tree (fndecl=fndecl@entry=0x7fffef78d600) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/gimplify.c:15030 #5 0x0000000000885968 in cgraph_node::analyze (this=0x7fffef790438) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cgraphunit.c:670 #6 0x0000000000888288 in analyze_functions (first_time=) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cgraphunit.c:1227 #7 0x0000000000888ed3 in symbol_table::finalize_compilation_unit (this=0x7ffff7950100) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cgraphunit.c:2974 #8 0x0000000000c76321 in compile_file () at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/toplev.c:483 #9 0x00000000006005e5 in do_compile () at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/toplev.c:2277 #10 toplev::main (this=this@entry=0x7fffffffd4c6, argc=, argc@entry=22, argv=, argv@entry=0x7fffffffd5c8) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/toplev.c:2416 #11 0x00000000006040cc in main (argc=22, argv=0x7fffffffd5c8) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/main.c:39 (gdb) frame 0 #0 cp_gimplify_expr (expr_p=0x7fffef78d6c0, pre_p=0x7fffffffd1d8, post_p=0x7fffffffd0c8) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/cp-gimplify.c:668 668 { (gdb) disassemble Dump of assembler code for function cp_gimplify_expr(tree_node**, gimple**, gimple**): Address range 0x6595b0 to 0x65a282: => 0x00000000006595b0 <+0>: push %r15 0x00000000006595b2 <+2>: push %r14 0x00000000006595b4 <+4>: mov %rdi,%r14 0x00000000006595b7 <+7>: push %r13 0x00000000006595b9 <+9>: push %r12 0x00000000006595bb <+11>: push %rbp 0x00000000006595bc <+12>: push %rbx 0x00000000006595bd <+13>: mov %rsi,%rbp 0x00000000006595c0 <+16>: sub $0x88,%rsp 0x00000000006595c7 <+23>: mov (%rdi),%rdi 0x00000000006595ca <+26>: mov 0x326c928(%rip),%ebx # 0x38c5ef8 0x00000000006595d0 <+32>: mov %rdx,0x10(%rsp) 0x00000000006595d5 <+37>: mov %fs:0x28,%rax 0x00000000006595de <+46>: mov %rax,0x78(%rsp) 0x00000000006595e3 <+51>: xor %eax,%eax 0x00000000006595e5 <+53>: callq 0x77b0d0 0x00000000006595ea <+58>: movl $0x0,0xc(%rsp) 0x00000000006595f2 <+66>: test %eax,%eax 0x00000000006595f4 <+68>: mov %eax,%r11d 0x00000000006595f7 <+71>: mov (%r14),%rax 0x00000000006595fa <+74>: cmove %ebx,%r11d 0x00000000006595fe <+78>: movzwl (%rax),%r15d 0x0000000000659602 <+82>: movzwl %r15w,%ebx 0x0000000000659606 <+86>: mov %r15d,%r12d 0x0000000000659609 <+89>: cmpb $0x0,0x208eea0(%rbx) 0x0000000000659610 <+96>: jne 0x6598b0 0x0000000000659616 <+102>: cmp $0x134,%r12w 0x000000000065961c <+108>: ja 0x65967c 0x000000000065961e <+110>: cmp $0xfd,%r12w 0x0000000000659624 <+116>: jbe 0x659650 0x0000000000659626 <+118>: lea -0xfe(%r12),%r9d 0x000000000065962e <+126>: cmp $0x36,%r9w 0x0000000000659633 <+131>: ja 0x65967c 0x0000000000659635 <+133>: movzwl %r9w,%r9d 0x0000000000659639 <+137>: jmpq *0x1639220(,%r9,8) 0x0000000000659641 <+145>: data16 nopw %cs:0x0(%rax,%rax,1) 0x000000000065964c <+156>: nopl 0x0(%rax) 0x0000000000659650 <+160>: cmp $0x42,%r12w 0x0000000000659655 <+165>: je 0x659d40 0x000000000065965b <+171>: jbe 0x659730 0x0000000000659661 <+177>: cmp $0x92,%r12w 0x0000000000659667 <+183>: je 0x659d10 0x000000000065966d <+189>: lea -0xac(%r12),%r9d 0x0000000000659675 <+197>: cmp $0x4,%r9w --Type for more, q to quit, c to continue without paging--q Quit (gdb) b *0x00000000006595e3 Breakpoint 4 at 0x6595e3: file /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/cp-gimplify.c, line 668. (gdb) c Continuing. Thread 2.1 "cc1plus" hit Breakpoint 4, 0x00000000006595e3 in cp_gimplify_expr (expr_p=0x7fffef78d6c0, pre_p=0x7fffffffd1d8, post_p=0x7fffffffd0c8) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/cp-gimplify.c:668 668 { (gdb) watch *(long*)($rsp+78) Watchpoint 5: *(long*)($rsp+78) (gdb) c Continuing. Thread 2.1 "cc1plus" hit Watchpoint 5: *(long*)($rsp+78) Old value = 4373616787456 New value = 196608 cp_expr_location (t_=0x7fffef10d030) at /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/tree.c:5746 5746 if (t == NULL_TREE) (gdb) list 5741 5742 location_t 5743 cp_expr_location (const_tree t_) 5744 { 5745 tree t = CONST_CAST_TREE (t_); 5746 if (t == NULL_TREE) 5747 return UNKNOWN_LOCATION; 5748 switch (TREE_CODE (t)) 5749 { 5750 case LAMBDA_EXPR: (gdb) disassemble /s Dump of assembler code for function cp_expr_location(tree_node const*): /var/tmp/portage/sys-devel/gcc-10.1.0-r2/work/gcc-10.1.0/gcc/cp/tree.c: 5744 { 5745 tree t = CONST_CAST_TREE (t_); 5746 if (t == NULL_TREE) => 0x000000000077b0d0 <+0>: test %rdi,%rdi 0x000000000077b0d3 <+3>: je 0x77b100 5747 return UNKNOWN_LOCATION; 5748 switch (TREE_CODE (t)) 0x000000000077b0d5 <+5>: movzwl (%rdi),%eax 0x000000000077b0d8 <+8>: cmp $0x13f,%ax 0x000000000077b0dc <+12>: je 0x77b110 0x000000000077b0de <+14>: cmp $0x140,%ax 0x000000000077b0e2 <+18>: je 0x77b120 0x000000000077b0e4 <+20>: cmp $0x135,%ax 0x000000000077b0e8 <+24>: je 0x77b110 5756 default: 5757 return EXPR_LOCATION (t); 0x000000000077b0ea <+26>: mov 0x175c280(,%rax,4),%edx 0x000000000077b0f1 <+33>: xor %eax,%eax 0x000000000077b0f3 <+35>: sub $0x4,%edx 0x000000000077b0f6 <+38>: cmp $0x6,%edx 0x000000000077b0f9 <+41>: ja 0x77b102 0x000000000077b0fb <+43>: mov 0x10(%rdi),%eax 0x000000000077b0fe <+46>: retq 0x000000000077b0ff <+47>: nop 0x000000000077b100 <+48>: xor %eax,%eax 0x000000000077b102 <+50>: retq 0x000000000077b103 <+51>: data16 nopw %cs:0x0(%rax,%rax,1) 0x000000000077b10e <+62>: xchg %ax,%ax 5755 return TRAIT_EXPR_LOCATION (t); 0x000000000077b110 <+64>: mov 0x28(%rdi),%eax 0x000000000077b113 <+67>: retq 0x000000000077b114 <+68>: data16 nopw %cs:0x0(%rax,%rax,1) 0x000000000077b11f <+79>: nop 5751 return LAMBDA_EXPR_LOCATION (t); 0x000000000077b120 <+80>: mov 0x30(%rdi),%eax 0x000000000077b123 <+83>: retq End of assembler dump.