[lld] [llvm] [Symbolizer] Support for Missing Line Numbers. (PR #82240)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 08:11:56 PDT 2024


================
@@ -0,0 +1,489 @@
+##  Test  --skip-line-zero option.
+##
+##  This test illustrates the usage of handcrafted assembly to produce the following line table.
+##  Address            Line   Column File   ISA Discriminator OpIndex Flags
+##  ------------------ ------ ------ ------ --- ------------- ------- -------------
+##  0x00000000000030a0      1     80      1   0             0       0  is_stmt prologue_end
+##  0x00000000000030a6      1     80      1   0             0       0  is_stmt end_sequence
+##  0x0000000000001000      0     68      1   0             0       0  is_stmt prologue_end
+##  0x0000000000001008      2     39      1   0             0       0
+##  0x0000000000001010      3     68      1   0             0       0  is_stmt prologue_end
+##  0x0000000000001012      0     68      1   0             0       0
+##  0x0000000000001017      3     68      1   0             0       0
+##  0x0000000000001019      3     39      1   0             0       0
+##  0x0000000000001020      5     1       2   0             0       0  is_stmt prologue_end
+##  0x0000000000001026      5     1       2   0             0       0  is_stmt end_sequence
+
+# REQUIRES: x86-registered-target
+
+# RUN: rm -rf %t && split-file %s %t && cd %t
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux --fdebug-prefix-map=%t="" %s -o %t.o
+
+## Check that with '--skip-line-zero', the last non-zero line in the current sequence is displayed.
+## If it fails to find in the current sequence then return the orignal computed line-zero for the queried address.
----------------
ampandey-1995 wrote:

Done

https://github.com/llvm/llvm-project/pull/82240


More information about the llvm-commits mailing list