Closed
Description
I compiled a debug version of clang, but bouth lldb and gdb can not show debug info.
llvm-objdump.exe -h clang.exe
output
Sections:
Idx Name Size VMA Type
0 .text 07c657a6 0000000140001000 TEXT
1 .rdata 0171a77c 0000000147c67000 DATA
2 .buildid 00000035 0000000149382000 DATA
3 .data 00015800 0000000149383000 DATA
4 .pdata 009c0c90 00000001493f1000 DATA
5 .tls 00000038 0000000149db2000 DATA
6 .reloc 000a6ab8 0000000149db3000 DATA
7 .debug_abbrev 00455be8 0000000149e5a000 DATA, DEBUG
8 .debug_aranges 000001e0 000000014a2b0000 DATA, DEBUG
9 .debug_info 19601934 000000014a2b1000 DATA, DEBUG
10 .debug_line 07d4914f 00000001638b3000 DATA, DEBUG
11 .debug_loc 00380b05 000000016b5fd000 DATA, DEBUG
12 .debug_ranges 027a99d0 000000016b97e000 DATA, DEBUG
13 .debug_str 3038e842 000000016e128000 DATA, DEBUG
use llvm-objcopy --only-keep-debug
export the debug info, and the debug info size is about 1.43GB.
load clang.exe
use gdb show No debugging symbols found in clang.exe
load clang.exe
use lldb and run to breakpoint, and run source info
show error: No debug info for the selected frame.
Metadata
Metadata
Assignees
Labels
No labels