name_ids() did not return all IDs but only the first NameCount items.
The number of non-zero entries in IDs vector is NameCount, but it
does not mean that all non-zero entries are at the beginning of IDs
vector.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/DebugInfo/PDB/pdbdump-headers.test | ||
---|---|---|
34 ↗ | (On Diff #58382) | I thought this was going to explain why Name Count was printing 4, but we were only printing 2 actual entries. Is there supposed to be a 4th one? |
Comment Actions
The vector for empty.pdb is [0, 0x34, 0, 0, 0x1, 0x35, 0x46]. Previously name_ids returned [0x34, 0, 0, 0x1] which is the two strings. 0x35 is the empty string, and 0x46 is the missing string.