llvm-project/lldb/source
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] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
Breakpoint Add breakpoint resolving stats to each target. 2021-10-27 16:50:11 -07:00
Commands [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
Core [lldb] Remove some trivial scoped timers 2021-12-06 15:22:28 -08:00
DataFormatters [lldb] (Partially) enable formatting of utf strings before the program is started 2021-11-18 14:45:17 +01:00
Expression Modify DataEncoder to be able to encode data in an object owned buffer. 2021-12-07 09:44:57 -08:00
Host [lldb/qemu] Add support for pty redirection 2021-12-06 15:03:21 +01:00
Initialization [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
Interpreter [NFC] const-ify some methods on CommandReturnObject 2021-12-03 14:54:03 -08:00
Plugins Silence format string warning harder. 2021-12-08 19:37:32 +01:00
Symbol [lldb] Remove some trivial scoped timers 2021-12-06 15:22:28 -08:00
Target [lldb/Target] Slide source display for artificial locations at function start 2021-12-08 15:25:29 -08:00
Utility Modify DataEncoder to be able to encode data in an object owned buffer. 2021-12-07 09:44:57 -08:00
Version [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
CMakeLists.txt [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00