[lldb/crashlog] Fix line entries resolution in interactive mode
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Wed, 18 May 2022 21:18:14 +0000 (14:18 -0700)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Thu, 19 May 2022 01:22:47 +0000 (18:22 -0700)
commit3e54ea0cfa3074e36ebee11848e072785437a8b9
tree2b7beaf77e198930a9d9f92df190af72ff39258b
parent051a5ae99824fab879d9aade9d794e60ebc5c2e5
[lldb/crashlog] Fix line entries resolution in interactive mode

This patch subtracts 1 to the pc of any frame above frame 0 to get the
previous line entry and display the right line in the debugger.

This also rephrase some old comment from `48d157dd4`.

rdar://92686666

Differential Revision: https://reviews.llvm.org/D125928

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/examples/python/crashlog.py
lldb/examples/python/scripted_process/crashlog_scripted_process.py