llvm-project/lldb
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
..
bindings [lldb] Remove extern "C" from lldb-swig-lua interface 2021-12-06 14:57:44 +01:00
cmake Revert "Use `GNUInstallDirs` to support custom installation dirs. -- LLVM" 2021-11-02 19:11:44 +01:00
docs [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
examples [lldb/plugins] Add arm64(e) support to ScriptedProcess 2021-12-06 16:11:59 -08:00
include/lldb [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
packages/Python [lldb] Fix broken skipUnlessUndefinedBehaviorSanitizer decorator 2021-11-30 13:03:33 -08:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [lldb/Target] Slide source display for artificial locations at function start 2021-12-08 15:25:29 -08:00
test [lldb/Target] Slide source display for artificial locations at function start 2021-12-08 15:25:29 -08:00
third_party/Python/module [lldb][NFC] Inclusive language: replace master/slave names for ptys 2021-11-12 10:54:18 -06:00
tools [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
unittests Fix buildbots after https://reviews.llvm.org/D115073. 2021-12-07 12:19:00 -08:00
utils [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
.clang-format
.clang-tidy [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
.gitignore
CMakeLists.txt [lldb] remove usage of distutils, fix python path on debian/ubuntu 2021-11-17 13:14:30 -08:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py