[PATCH] D63537: [llvm-dwarfdump] --gdb-index: fix uninitialized TuListOffset
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 03:53:45 PDT 2019
MaskRay added a comment.
When an `enum` is used:
enum foo { foo0 };
int main () { return foo0; }
The built .gdb_index will have some weird encoded `Num`:
> 186| uint32_t Num = Data.getU32(&Offset);
> 187| for (uint32_t j = 0; j < Num; ++j)
> 188| Vec.second.push_back(Data.getU32(&Offset));
I don't know what gdb does... D64396 <https://reviews.llvm.org/D64396> may help the investigation a bit.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63537/new/
https://reviews.llvm.org/D63537
More information about the llvm-commits
mailing list