[PATCH] D120660: [llvm-symbolizer] Add --approximate-missing-line-numbers Command Line Option

Owen Reynolds via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 28 06:56:53 PST 2022


gbreynoo created this revision.
gbreynoo added reviewers: jhenderson, MaskRay, aorlov, noajshu, mysterymath.
Herald added subscribers: rupprecht, hiraditya.
gbreynoo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

There are cases in which line information is missing, for example when the compiler gives no line number entry due to optimizations making a line number nebulous. When using llvm-symbolizer to debug these cases the user has to test the nearby addresses to find a valid source line number. This change adds the command line option  `--approximate-missing-line-numbers`, in cases in which no line number is found the line number of the previous address will be output instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120660

Files:
  llvm/docs/CommandGuide/llvm-symbolizer.rst
  llvm/include/llvm/DebugInfo/Symbolize/Symbolize.h
  llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
  llvm/test/tools/llvm-symbolizer/approximate-missing-line-numbers-inline.s
  llvm/test/tools/llvm-symbolizer/approximate-missing-line-numbers.s
  llvm/tools/llvm-symbolizer/Opts.td
  llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120660.411801.patch
Type: text/x-patch
Size: 18761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220228/65dfb311/attachment-0001.bin>


More information about the llvm-commits mailing list