summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/interactive_scripted_process/TestInteractiveScriptedProcess.py
diff options
context:
space:
mode:
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>2023-09-08 10:47:44 -0400
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>2023-09-11 09:59:21 -0400
commit26ca2f47c1373f20215994e844a30d1f6173268d (patch)
tree67371547c1d7dc2aaf55484a8463cd740bad5455 /lldb/test/API/functionalities/interactive_scripted_process/TestInteractiveScriptedProcess.py
parentd9c9c9f2d94c30f3783acfcaea94c6b24a5ca718 (diff)
[DebugInfo] Parse StrOffsets section if needed
Querying the debug_str_offsets section requires parsing the top level DIE of the CU (as well as the section itself); the current getter, however, assumes this is done elsewhere. This patch changes the getter behavior to match what is done in other getter methods (e.g. `getCompilationDir` or `getVariableForAddress`), in other words, `extractDIEsIfNeeded` is now called prior to returning the debug_str_offsets contributions for the Unit. One way in which this bug manifested is when `dwarfdump --debug-str-offsets` is invoked: because the DIEs are never parsed, we incorrectly print an empty section (with no warnings or errors). Differential Revision: https://reviews.llvm.org/D159484
Diffstat (limited to 'lldb/test/API/functionalities/interactive_scripted_process/TestInteractiveScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions