llvm-project/lldb/test
Med Ismail Bennani edf410e48f [lldb/Target] Slide source display for artificial locations at function start
It can happen that a line entry reports that some source code is located
at line 0. In DWARF, line 0 is a special location which indicates that
code has no 1-1 mapping with source.

When stopping in one of those artificial locations, lldb doesn't know which
line to display and shows the beginning of the file instead.

This patch mitigates this behaviour by checking if the current symbol context
of the line entry has a matching function, in which case, it slides the
source listing to the start of that function.

This patch also shows the user a warning explaining why lldb couldn't
show sources at that location.

rdar://83118425

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

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2021-12-08 15:25:29 -08:00
..
API [lldb/Target] Slide source display for artificial locations at function start 2021-12-08 15:25:29 -08:00
Shell [LLDB][NativePDB] Fix function decl creation for class methods 2021-12-07 10:41:28 -08:00
Unit [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
CMakeLists.txt [lldb] Only specify LLVM_ENABLE_RUNTIMES in the libcxx error message. 2021-11-01 09:39:24 -07:00
lit.cfg.py
lit.site.cfg.py.in [lldb] config.test_exec_root is set by lit.cfg.py 2021-03-22 14:36:43 -07:00