[llvm] [GSYM] Add support for querying merged functions in llvm-gsymutil (PR #120991)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 14:02:54 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/15590

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: tools/llvm-gsymutil/X86/mach-dwarf.yaml' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 5: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/yaml2obj /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/yaml2obj /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp
RUN: at line 6: llvm-gsymutil --convert /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp.gsym 2>&1 | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml --check-prefix=CONVERT
+ llvm-gsymutil --convert /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp.gsym
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml --check-prefix=CONVERT
RUN: at line 7: llvm-gsymutil --address=0 --address=0x100000000 --address=0x100000f90 --address=0x100000faa --address=0x200000000 /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp.gsym 2>&1 | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml --check-prefix=ADDR
+ llvm-gsymutil --address=0 --address=0x100000000 --address=0x100000f90 --address=0x100000faa --address=0x200000000 /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp.gsym
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml --check-prefix=ADDR
RUN: at line 8: llvm-gsymutil --verbose --address=0x100000000 --address=0x100000f90 --address=0x100000faa /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp.gsym 2>&1 | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml --check-prefix=ADDRV
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml --check-prefix=ADDRV
+ llvm-gsymutil --verbose --address=0x100000000 --address=0x100000f90 --address=0x100000faa /b/1/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-gsymutil/X86/Output/mach-dwarf.yaml.tmp.gsym
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml:39:15: error: ADDRV-NEXT: expected string not found in input
# ADDRV-NEXT: 0x0000000100000f90: main @ /tmp/main.cpp:4
              ^
<stdin>:16:37: note: scanning from here
LookupResult for 0x0000000100000f90:
                                    ^
<stdin>:23:2: note: possible intended match here
 0x0000000100000f90 /tmp/main.cpp:4
 ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          11:  0x0000000100000fb3 /tmp/main.cpp:6 
          12: InlineInfo: 
          13: [0x0000000100000f90 - 0x0000000100000fb5) main 
          14:  [0x0000000100000faa - 0x0000000100000fb0) _Z3fooi called from /tmp/main.cpp:5 
          15:  
          16: LookupResult for 0x0000000100000f90: 
next:39'0                                         X error: no match found
          17:  
next:39'0     ~
          18: 0x0000000100000faa: _Z3fooi @ /tmp/main.cpp:2 [inlined] 
next:39'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          19:  main + 26 @ /tmp/main.cpp:5 
next:39'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          20: FunctionInfo for 0x0000000100000faa: 
...

```

</details>

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


More information about the llvm-commits mailing list