aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2021-12-07 17:49:44 -0800
committerMed Ismail Bennani <medismail.bennani@gmail.com>2021-12-08 15:25:29 -0800
commitedf410e48f5b5ec8e5f7b4cb6c9b578c1e0a067f (patch)
tree4bb0bb70126463977633438f5f4af8b93e06dd2c /llvm/unittests/ADT/StringRefTest.cpp
parentcfd1d49dc0cc4369ace2e9485bdba04b27f158b5 (diff)
downloadllvm-edf410e48f5b5ec8e5f7b4cb6c9b578c1e0a067f.zip
llvm-edf410e48f5b5ec8e5f7b4cb6c9b578c1e0a067f.tar.gz
llvm-edf410e48f5b5ec8e5f7b4cb6c9b578c1e0a067f.tar.bz2
[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>
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
0 files changed, 0 insertions, 0 deletions