GDB 함수명 깨짐 문제
0x0000000000401711 <+81>: call 0x4013c0 <_Z11Add_Contextv>
0x0000000000401716 <+86>: mov QWORD PTR [rbp-0x38],rax
0x000000000040171a <+90>: jmp 0x4017b1 <main+241>
0x000000000040171f <+95>: call 0x4014b0 <_Z12Edit_Contextv>
0x0000000000401724 <+100>: mov QWORD PTR [rbp-0x40],rax
0x0000000000401728 <+104>: jmp 0x4017b1 <main+241>
0x000000000040172d <+109>: call 0x4015b0 <_Z12View_Contextv>
0x0000000000401732 <+114>: mov QWORD PTR [rbp-0x48],rax
0x0000000000401736 <+118>: jmp 0x4017b1 <main+241>
0x000000000040173b <+123>: call 0x401630 <_Z12Free_Contextv>
해결 방법
set print asm-demangle on
0x0000000000401711 <+81>: call 0x4013c0 <Add_Context()>
0x0000000000401716 <+86>: mov QWORD PTR [rbp-0x38],rax
0x000000000040171a <+90>: jmp 0x4017b1 <main+241>
0x000000000040171f <+95>: call 0x4014b0 <Edit_Context()>
0x0000000000401724 <+100>: mov QWORD PTR [rbp-0x40],rax
0x0000000000401728 <+104>: jmp 0x4017b1 <main+241>
0x000000000040172d <+109>: call 0x4015b0 <View_Context()>
0x0000000000401732 <+114>: mov QWORD PTR [rbp-0x48],rax
0x0000000000401736 <+118>: jmp 0x4017b1 <main+241>
0x000000000040173b <+123>: call 0x401630 <Free_Context()>