https://github.com/slydiman updated https://github.com/llvm/llvm-project/pull/94165
>From f2064da30ae1d4dae4f04587e97ee0fdc82eb734 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev <dvassil...@accesssoftek.com> Date: Sun, 2 Jun 2024 21:38:12 +0400 Subject: [PATCH 1/2] [lldb] Disable find-module.test in case of a remote target The target arch is `i386-pc-windows` after loading the dump. It updates to `i386-pc-windows-msvc` or `i386-pc-windows-gnu` in lldb\source\Plugins\Process\minidump\ProcessMinidump.cpp, line 218 ``` GetTarget().MergeArchitecture(module->GetArchitecture()); ``` But in case of the remote target (`remote-linux`) and the `Windows host` lldb executed the following commands at the beginning ``` platform select remote-linux platform connect connect://<ip>:<port> ``` and then the target arch is `i386-pc-windows-msvc` immediately after loading the dump. GetTarget().MergeArchitecture(module->GetArchitecture()) does not update it to `i386-pc-windows-gnu` when the module arch is `i386-pc-windows-gnu`. --- lldb/test/Shell/Minidump/Windows/find-module.test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/test/Shell/Minidump/Windows/find-module.test b/lldb/test/Shell/Minidump/Windows/find-module.test index 7ac2f74f8039b1..b3a7ec36520f04 100644 --- a/lldb/test/Shell/Minidump/Windows/find-module.test +++ b/lldb/test/Shell/Minidump/Windows/find-module.test @@ -1,6 +1,8 @@ Test that we correctly find a PE/COFF file in our executable search path, and use it when opening minidumps. +UNSUPPORTED: remote{{.*}} + RUN: yaml2obj %S/Inputs/find-module.exe.yaml -o %T/find-module.exe RUN: yaml2obj %S/Inputs/find-module.dmp.yaml -o %T/find-module.dmp RUN: %lldb -O "settings set target.exec-search-paths %T" \ >From 5fb07193c7e22665618537e2eacabedb27fe2f8f Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev <slydi...@gmail.com> Date: Thu, 14 Nov 2024 11:25:09 +0400 Subject: [PATCH 2/2] Update lldb/test/Shell/Minidump/Windows/find-module.test Co-authored-by: Pavel Labath <pa...@labath.sk> --- lldb/test/Shell/Minidump/Windows/find-module.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/Shell/Minidump/Windows/find-module.test b/lldb/test/Shell/Minidump/Windows/find-module.test index b3a7ec36520f04..fe457f4123522f 100644 --- a/lldb/test/Shell/Minidump/Windows/find-module.test +++ b/lldb/test/Shell/Minidump/Windows/find-module.test @@ -1,7 +1,7 @@ Test that we correctly find a PE/COFF file in our executable search path, and use it when opening minidumps. -UNSUPPORTED: remote{{.*}} +XFAIL: remote{{.*}} RUN: yaml2obj %S/Inputs/find-module.exe.yaml -o %T/find-module.exe RUN: yaml2obj %S/Inputs/find-module.dmp.yaml -o %T/find-module.dmp _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits