summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/process/TestProcessAPI.py
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2021-01-28 16:35:18 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2021-01-30 18:36:38 +0300
commitd22140687500f90830fe416d9c1e317f7c4535d5 (patch)
tree428ae977637de4a44ae63653644c9a7553c7f40d /lldb/test/API/python_api/process/TestProcessAPI.py
parentbb57a3422a09dcdd572ccb42767a0dabb5f966dd (diff)
[llvm-symbolizer] - Fix the crash in GNU output style with --no-inlines and missing input file.
Fixes https://bugs.llvm.org/show_bug.cgi?id=48882. If the input file does not exist (or has a reading error), the following code will crash if there are two or more input addresses. ``` auto ResOrErr = Symbolizer.symbolizeInlinedCode( ModuleName, {Offset, object::SectionedAddress::UndefSection}); Printer << (error(ResOrErr) ? DILineInfo() : ResOrErr.get().getFrame(0)); ``` For the first address, `symbolizeInlinedCode` returns an error. For the second address, `symbolizeInlinedCode` returns an empty result (not an error) and `.getFrame(0)` will crash. Differential revision: https://reviews.llvm.org/D95609
Diffstat (limited to 'lldb/test/API/python_api/process/TestProcessAPI.py')
0 files changed, 0 insertions, 0 deletions