Last active
March 24, 2020 15:39
-
-
Save kwk/a5febc24fae07f23022d2ff430667cfb to your computer and use it in GitHub Desktop.
[lldb] (target list): PPC64 is detected as PPC64LE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IMPORTANT: PUT THIS FILE IN lldb/test/Shell/Commands/elf-ppc64-target-list.yaml | |
# RUN: yaml2obj %s -o %t | |
# RUN: %lldb -x -b %t -o "target list" | FileCheck --dump-input=always %s | |
# CHECK: (lldb) target list | |
# CHECK-NEXT: Current targets: | |
# CHECK-NEXT: * target #0: {{.*}} ( arch=powerpc64-*-*, platform=host ) | |
--- !ELF | |
FileHeader: | |
Class: ELFCLASS64 | |
Data: ELFDATA2MSB # ELFDATA2LSB causes the same target output | |
Type: ET_EXEC | |
Machine: EM_PPC64 | |
# Anything to tweak here to get rid of the "le" in powerpc64le? | |
# Flags: [ EF_AVR_ARCH_AVR1, EF_AVR_ARCH_AVR4 ] | |
# Entry: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ llvm-builds/relwithdebinfo/bin/llvm-lit -v /opt/notnfs/kkleine/llvm/lldb/test/Shell/Commands/elf-ppc64-target-list.yaml | |
llvm-lit: /opt/notnfs/kkleine/llvm/llvm/utils/lit/lit/llvm/config.py:342: note: using clang: /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/bin/clang | |
llvm-lit: /opt/notnfs/kkleine/llvm/llvm/utils/lit/lit/llvm/config.py:342: note: using ld.lld: /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/bin/ld.lld | |
llvm-lit: /opt/notnfs/kkleine/llvm/llvm/utils/lit/lit/llvm/config.py:342: note: using lld-link: /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/bin/lld-link | |
llvm-lit: /opt/notnfs/kkleine/llvm/llvm/utils/lit/lit/llvm/config.py:342: note: using ld64.lld: /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/bin/ld64.lld | |
llvm-lit: /opt/notnfs/kkleine/llvm/llvm/utils/lit/lit/llvm/config.py:342: note: using wasm-ld: /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/bin/wasm-ld | |
-- Testing: 1 tests, 1 workers -- | |
FAIL: lldb-shell :: Commands/elf-ppc64-target-list.yaml (1 of 1) | |
******************** TEST 'lldb-shell :: Commands/elf-ppc64-target-list.yaml' FAILED ******************** | |
Script: | |
-- | |
: 'RUN: at line 1'; /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/bin/yaml2obj /opt/notnfs/kkleine/llvm/lldb/test/Shell/Commands/elf-ppc64-target-list.yaml -o /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Commands/Output/elf-ppc64-target-list.yaml.tmp | |
: 'RUN: at line 2'; /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/bin/lldb --no-lldbinit -S /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Shell/lit-lldb-init -x -b /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Commands/Output/elf-ppc64-target-list.yaml.tmp -o "target list" | /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/bin/FileCheck --dump-input=always /opt/notnfs/kkleine/llvm/lldb/test/Shell/Commands/elf-ppc64-target-list.yaml | |
-- | |
Exit Code: 1 | |
Command Output (stderr): | |
-- | |
/opt/notnfs/kkleine/llvm/lldb/test/Shell/Commands/elf-ppc64-target-list.yaml:6:15: error: CHECK-NEXT: expected string not found in input | |
# CHECK-NEXT: * target #0: {{.*}} ( arch=powerpc64-*-*, platform=host ) | |
^ | |
<stdin>:13:1: note: scanning from here | |
* target #0: /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Commands/Output/elf-ppc64-target-list.yaml.tmp ( arch=powerpc64le-*-*, platform=host ) | |
^ | |
<stdin>:13:103: note: possible intended match here | |
* target #0: /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Commands/Output/elf-ppc64-target-list.yaml.tmp ( arch=powerpc64le-*-*, platform=host ) | |
^ | |
Input file: <stdin> | |
Check file: /opt/notnfs/kkleine/llvm/lldb/test/Shell/Commands/elf-ppc64-target-list.yaml | |
-dump-input=help describes the format of the following dump. | |
Full input was: | |
<<<<<< | |
1: (lldb) command source -s 0 '/opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Shell/lit-lldb-init' | |
2: Executing commands in '/opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Shell/lit-lldb-init'. | |
3: (lldb) # LLDB init file for the LIT tests. | |
4: (lldb) settings set symbols.enable-external-lookup false | |
5: (lldb) settings set plugin.process.gdb-remote.packet-timeout 60 | |
6: (lldb) settings set interpreter.echo-comment-commands false | |
7: (lldb) settings set symbols.clang-modules-cache-path "/opt/notnfs/kkleine/llvm-builds/relwithdebinfo/lldb-test-build.noindex/module-cache-lldb" | |
8: (lldb) settings set target.auto-apply-fixits false | |
9: (lldb) target create "/opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Commands/Output/elf-ppc64-target-list.yaml.tmp" | |
10: Current executable set to '/opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Commands/Output/elf-ppc64-target-list.yaml.tmp' (powerpc64le). | |
11: (lldb) target list | |
12: Current targets: | |
13: * target #0: /opt/notnfs/kkleine/llvm-builds/relwithdebinfo/tools/lldb/test/Commands/Output/elf-ppc64-target-list.yaml.tmp ( arch=powerpc64le-*-*, platform=host ) | |
next:6'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found | |
next:6'1 ? possible intended match | |
>>>>>> | |
-- | |
******************** | |
Testing Time: 0.07s | |
******************** | |
Failing Tests (1): | |
lldb-shell :: Commands/elf-ppc64-target-list.yaml | |
Unexpected Failures: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment