Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with -gsplit-dwarf=single and -gsplit-dwarf=split (clang) #590

Open
jankratochvil opened this issue Jul 31, 2021 · 0 comments

Comments

@jankratochvil
Copy link

jankratochvil commented Jul 31, 2021

-gsplit-dwarf itself works fine. But -gsplit-dwarf=single (and even -gsplit-dwarf=split which is the same as -gsplit-dwarf) will produce unloadable debug info.

icecream-1.3-4.fc34.x86_64

Actual:

Reading symbols from ./main...
warning: Could not find DWO CU icecc-201616_c274b459.o(0xadb46cb729222933) referenced by CU at offset 0xd8 [in module /quad/home/jkratoch/t/splitsingle/main]
warning: Could not find DWO CU icecc-201617_cfd7b459.o(0x52d23d48271d0185) referenced by CU at offset 0x144 [in module /quad/home/jkratoch/t/splitsingle/main]

$ llvm-dwarfdump 110.o
.debug_info contents:
...
0x0000000b: DW_TAG_compile_unit
...
              DW_AT_GNU_dwo_name        ("icecc-201615_c4e1b459.o")
...
.debug_info.dwo contents:
...
0x0000000b: DW_TAG_compile_unit
              DW_AT_name        ("110.C")
              DW_AT_GNU_dwo_name        ("icecc-201615_c4e1b459.o")
...
0x00000019:   DW_TAG_variable
                DW_AT_name      ("i110")

Expected:

Reading symbols from ./main...

$ llvm-dwarfdump 110.o
.debug_info contents:
...
0x0000000b: DW_TAG_compile_unit
...
              DW_AT_GNU_dwo_name        ("110.o")
...
.debug_info.dwo contents:
...
0x0000000b: DW_TAG_compile_unit
              DW_AT_name        ("110.C")
              DW_AT_GNU_dwo_name        ("110.o")
...
0x00000019:   DW_TAG_variable
                DW_AT_name      ("i110")

run.txt

@jankratochvil jankratochvil changed the title Incompatible with -gsplit-dwarf=single (clang) Incompatible with -gsplit-dwarf=single and -gsplit-dwarf=split (clang) Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant