[Lldb-commits] [PATCH] D100194: [lldb] Require x86 for various NativePDB, Breakpad and Minidump tests
This revision was automatically updated to reflect the committed changes. Closed by commit rGf152472af576: [lldb] Require x86 for various NativePDB, Breakpad and Minidump tests (authored by DavidSpickett). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100194/new/ https://reviews.llvm.org/D100194 Files: lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py lldb/test/Shell/Minidump/Windows/Sigsegv/sigsegv.test lldb/test/Shell/Minidump/disassemble-no-module.yaml lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp lldb/test/Shell/SymbolFile/symbol-binding.test Index: lldb/test/Shell/SymbolFile/symbol-binding.test === --- lldb/test/Shell/SymbolFile/symbol-binding.test +++ lldb/test/Shell/SymbolFile/symbol-binding.test @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # Some targets do not have the .size directive. # RUN: %clang -target x86_64-unknown-unknown-elf %S/Inputs/symbol-binding.s -c -o %t.o # RUN: %lldb %t.o -s %s -o quit | FileCheck %s Index: lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp === --- lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp +++ lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp @@ -1,5 +1,5 @@ // clang-format off -// REQUIRES: lld +// REQUIRES: lld, x86 // Test that we can display S_CONSTANT records. Index: lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp === --- lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp +++ lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp @@ -1,5 +1,5 @@ // clang-format off -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang_cl --target=i386-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s // RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb Index: lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp === --- lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp +++ lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp @@ -1,5 +1,5 @@ // clang-format off -// REQUIRES: lld +// REQUIRES: lld, x86 // Test that we can show disassembly and source. // RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s Index: lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml === --- lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml +++ lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: yaml2obj --docnum=1 %s -o %t.dmp # RUN: yaml2obj --docnum=2 %s -o %T/unwind-via-stack-win-no-memory-info.exe # RUN: %lldb -c %t.dmp %T/unwind-via-stack-win-no-memory-info.exe \ Index: lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test === --- lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test +++ lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: yaml2obj %S/Inputs/unwind-via-stack-win.yaml -o %t # RUN: %lldb -c %t \ # RUN: -o "target symbols add %S/Inputs/unwind-via-raSearch.syms" \ Index: lldb/test/Shell/Minidump/disassemble-no-module.yaml === --- lldb/test/Shell/Minidump/disassemble-no-module.yaml +++ lldb/test/Shell/Minidump/disassemble-no-module.yaml @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: yaml2obj %s -o %t # RUN: %lldb -c %t -o bt -o disassemble 2>&1 | FileCheck %s Index: lldb/test/Shell/Minidump/Windows/Sigsegv/sigsegv.test === --- lldb/test/Shell/Minidump/Windows/Sigsegv/sigsegv.test +++ lldb/test/Shell/Minidump/Windows/Sigsegv/sigsegv.test @@ -1,3 +1,5 @@ +// REQUIRES: x86 + // RUN: cd %p/Inputs // RUN: env LLDB_USE_NATIVE_PDB_READER=1 \ // RUN: %lldb -c sigsegv.dmp -s sigsegv.lldbinit | FileCheck %s Index: lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py === --- lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py +++ lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py @@ -124,6 +124,7 @@ stop_description = thread.GetStopDescription(256) self.assertIn("SIGSEGV", stop_description) +@skipIfLLVMTargetMissing("X86") def test_stack_info_in_minidump(self):
[Lldb-commits] [PATCH] D100194: [lldb] Require x86 for various NativePDB, Breakpad and Minidump tests
labath added inline comments. Comment at: lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml:13 # CHECK: frame #2: 0x000b1085 unwind-via-stack-win-no-memory-info.exe`main + 5 # CHECK: frame #3: 0x77278494 kernel32.dll # CHECK-NOT: frame DavidSpickett wrote: > @labath In this case, without the x86 backend we do get the first 3 frames > just not the kernel32.dll frame. > > ``` > (lldb) target symbols add > ../llvm-project/lldb/test/Shell/SymbolFile/Breakpad/Inputs/unwind-via-raSearch.syms > symbol file > '/home/david.spickett/llvm-project/lldb/test/Shell/SymbolFile/Breakpad/Inputs/unwind-via-raSearch.syms' > has been added to '/home/david.spickett/build-llvm-aarch64/foo/foo.exe' > (lldb) thread backtrace > * thread #1 > * frame #0: 0x000b1092 foo.exe`many_pointer_args + 2 > frame #1: 0x000b1079 foo.exe`call_many + 105 > frame #2: 0x000b1085 foo.exe`main + > ``` > > So my guess is that the last frame requires x86 specific knowledge to work > out. If you think that's not the case or would prefer I investigate first I > can remove it from this patch. Nah, that's fine. I'm pretty sure that is what's happening, and overall, I would actually say lldb should flat out refuse to open binaries/core files/etc. for which it does not have an appropriate back end Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100194/new/ https://reviews.llvm.org/D100194 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D100194: [lldb] Require x86 for various NativePDB, Breakpad and Minidump tests
DavidSpickett added inline comments. Comment at: lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test:45 # CHECK: frame #2: 0x000b1085 unwind-via-stack-win.exe`main + 5 # CHECK: frame #3: 0x77278494 kernel32.dll # CHECK-NOT: frame Same thing happens here if you don't have x86 enabled, this last frame is missing. Comment at: lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml:13 # CHECK: frame #2: 0x000b1085 unwind-via-stack-win-no-memory-info.exe`main + 5 # CHECK: frame #3: 0x77278494 kernel32.dll # CHECK-NOT: frame @labath In this case, without the x86 backend we do get the first 3 frames just not the kernel32.dll frame. ``` (lldb) target symbols add ../llvm-project/lldb/test/Shell/SymbolFile/Breakpad/Inputs/unwind-via-raSearch.syms symbol file '/home/david.spickett/llvm-project/lldb/test/Shell/SymbolFile/Breakpad/Inputs/unwind-via-raSearch.syms' has been added to '/home/david.spickett/build-llvm-aarch64/foo/foo.exe' (lldb) thread backtrace * thread #1 * frame #0: 0x000b1092 foo.exe`many_pointer_args + 2 frame #1: 0x000b1079 foo.exe`call_many + 105 frame #2: 0x000b1085 foo.exe`main + ``` So my guess is that the last frame requires x86 specific knowledge to work out. If you think that's not the case or would prefer I investigate first I can remove it from this patch. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100194/new/ https://reviews.llvm.org/D100194 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D100194: [lldb] Require x86 for various NativePDB, Breakpad and Minidump tests
DavidSpickett added reviewers: zturner, labath. DavidSpickett added a comment. Herald added a subscriber: JDevlieghere. (not adding a reviewer for each file type since most are pretty straightforward I think) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100194/new/ https://reviews.llvm.org/D100194 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D100194: [lldb] Require x86 for various NativePDB, Breakpad and Minidump tests
DavidSpickett created this revision. Herald added a subscriber: pengfei. DavidSpickett requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. These tests fail if you build without the x86 llvm backend. Either because they use an x86 triple or try to backtrace which requires some x86 knowledge to see all frames. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D100194 Files: lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py lldb/test/Shell/Minidump/Windows/Sigsegv/sigsegv.test lldb/test/Shell/Minidump/disassemble-no-module.yaml lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp lldb/test/Shell/SymbolFile/symbol-binding.test Index: lldb/test/Shell/SymbolFile/symbol-binding.test === --- lldb/test/Shell/SymbolFile/symbol-binding.test +++ lldb/test/Shell/SymbolFile/symbol-binding.test @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # Some targets do not have the .size directive. # RUN: %clang -target x86_64-unknown-unknown-elf %S/Inputs/symbol-binding.s -c -o %t.o # RUN: %lldb %t.o -s %s -o quit | FileCheck %s Index: lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp === --- lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp +++ lldb/test/Shell/SymbolFile/NativePDB/s_constant.cpp @@ -1,5 +1,5 @@ // clang-format off -// REQUIRES: lld +// REQUIRES: lld, x86 // Test that we can display S_CONSTANT records. Index: lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp === --- lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp +++ lldb/test/Shell/SymbolFile/NativePDB/function-types-calling-conv.cpp @@ -1,5 +1,5 @@ // clang-format off -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang_cl --target=i386-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s // RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -out:%t.exe -pdb:%t.pdb Index: lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp === --- lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp +++ lldb/test/Shell/SymbolFile/NativePDB/disassembly.cpp @@ -1,5 +1,5 @@ // clang-format off -// REQUIRES: lld +// REQUIRES: lld, x86 // Test that we can show disassembly and source. // RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -c /Fo%t.obj -- %s Index: lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml === --- lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml +++ lldb/test/Shell/SymbolFile/Breakpad/unwind-via-stack-win-no-memory-info.yaml @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: yaml2obj --docnum=1 %s -o %t.dmp # RUN: yaml2obj --docnum=2 %s -o %T/unwind-via-stack-win-no-memory-info.exe # RUN: %lldb -c %t.dmp %T/unwind-via-stack-win-no-memory-info.exe \ Index: lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test === --- lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test +++ lldb/test/Shell/SymbolFile/Breakpad/unwind-via-raSearch.test @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: yaml2obj %S/Inputs/unwind-via-stack-win.yaml -o %t # RUN: %lldb -c %t \ # RUN: -o "target symbols add %S/Inputs/unwind-via-raSearch.syms" \ Index: lldb/test/Shell/Minidump/disassemble-no-module.yaml === --- lldb/test/Shell/Minidump/disassemble-no-module.yaml +++ lldb/test/Shell/Minidump/disassemble-no-module.yaml @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: yaml2obj %s -o %t # RUN: %lldb -c %t -o bt -o disassemble 2>&1 | FileCheck %s Index: lldb/test/Shell/Minidump/Windows/Sigsegv/sigsegv.test === --- lldb/test/Shell/Minidump/Windows/Sigsegv/sigsegv.test +++ lldb/test/Shell/Minidump/Windows/Sigsegv/sigsegv.test @@ -1,3 +1,5 @@ +// REQUIRES: x86 + // RUN: cd %p/Inputs // RUN: env LLDB_USE_NATIVE_PDB_READER=1 \ // RUN: %lldb -c sigsegv.dmp -s sigsegv.lldbinit | FileCheck %s Index: lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py === --- lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py +++ lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py @@ -124,6 +124,7 @@ stop_description = thread.GetStopDescription(256) self.assertIn("SIGSEGV", stop_description) +