This adds more informative error handling around the
usage of GetRngListData.
Details
- Reviewers
jankratochvil
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I've split up the other CL (https://reviews.llvm.org/D107456) into the part that was reviewed, and this: the error handling that was requested on that CL. Please take a look whenever you have time!
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp | ||
---|---|---|
522 | If I am reading this correctly, it looks like this will only be set on the non-error case which will leave contribution_off in the caller uninitialized in the cases you care about logging. |
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp | ||
---|---|---|
522 | Sorry for the very late reply (I had a long vacation)! And thanks for the comment. If GetRnglistData didn't work, the error will be thrown below (line 526) in here. However, if it is successful, but another problem occurs (callers of GetRnglistData throw an error) the Offset will be initialized, and it can be logged. Example: ParseListTableHeader using it in ll. 548. Does that make sense? |
If I am reading this correctly, it looks like this will only be set on the non-error case which will leave contribution_off in the caller uninitialized in the cases you care about logging.