[Lldb-commits] [PATCH] D75750: WIP: [lldb] integrate debuginfod
Jan Kratochvil via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 23 08:41:49 PDT 2020
jankratochvil added inline comments.
================
Comment at: lldb/source/Host/common/DebugInfoD.cpp:43
+ buildID.GetBytes().size() ==
+ sizeof(llvm::support::ulittle32_t)) // .gnu_debuglink crc32
+ return llvm::createStringError(llvm::inconvertibleErrorCode(),
----------------
If it is done this way (and not in `libdebuginfod.so`) I think there should be `<=8` because LLDB contains:
```
if (gnu_debuglink_crc) {
// Use 4 bytes of crc from the .gnu_debuglink section.
u32le data(gnu_debuglink_crc);
uuid = UUID::fromData(&data, sizeof(data));
} else if (core_notes_crc) {
// Use 8 bytes - first 4 bytes for *magic* prefix, mainly to make
// it look different form .gnu_debuglink crc followed by 4 bytes
// of note segments crc.
u32le data[] = {u32le(g_core_uuid_magic), u32le(core_notes_crc)};
uuid = UUID::fromData(data, sizeof(data));
}
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75750/new/
https://reviews.llvm.org/D75750
More information about the lldb-commits
mailing list