Skip to content

[lldb] Fixed PlatformPOSIX::DoLoadImage() in case of the Windows host #93345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2024

Conversation

slydiman
Copy link
Contributor

@slydiman slydiman commented May 24, 2024

Do not denormalize the path. This patch fixes #93092.

BTW, it would be great to be able to pass the style or triple to SBFileSpec. Currently it is impossible to create a posix SBFileSpec on the Windows host.

@slydiman slydiman requested a review from JDevlieghere as a code owner May 24, 2024 20:40
@llvmbot llvmbot added the lldb label May 24, 2024
@slydiman slydiman requested a review from walter-erquinigo May 24, 2024 20:40
@llvmbot
Copy link
Member

llvmbot commented May 24, 2024

@llvm/pr-subscribers-lldb

Author: Dmitry Vasilyev (slydiman)

Changes

PlatformPOSIX::DoLoadImage() failed on the Linux AArch64 target. It is related to the issue #93092. Disable the TestCompletion.test_process_unload test for now.


Full diff: https://github.com/llvm/llvm-project/pull/93345.diff

1 Files Affected:

  • (modified) lldb/test/API/functionalities/completion/TestCompletion.py (+3)
diff --git a/lldb/test/API/functionalities/completion/TestCompletion.py b/lldb/test/API/functionalities/completion/TestCompletion.py
index 15aeaf8d0e897..eadb510a3df26 100644
--- a/lldb/test/API/functionalities/completion/TestCompletion.py
+++ b/lldb/test/API/functionalities/completion/TestCompletion.py
@@ -97,6 +97,9 @@ def test_process_load(self):
         self.complete_from_to("process load Makef", "process load Makefile")
 
     @skipUnlessPlatform(["linux"])
+    @expectedFailureAll(
+        archs=["aarch64"], bugnumber="github.com/llvm/llvm-project/issues/93092"
+    )
     def test_process_unload(self):
         """Test the completion for "process unload <index>" """
         # This tab completion should not work without a running process.

@slydiman slydiman force-pushed the fix2-lldb-TestCompletion branch from 3dcd666 to 76a35a6 Compare May 24, 2024 23:14
@slydiman slydiman changed the title [lldb] Fixed the TestCompletion test on the Linux AArch64 target [lldb] Fixed PlatformPOSIX::DoLoadImage() in case of the Windows host May 24, 2024
@slydiman slydiman requested a review from labath May 24, 2024 23:15
Copy link

github-actions bot commented May 24, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

Do not denormalize the path. This patch fixes llvm#93092.

BTW, it would be great to be able to pass the style or triple to SBFileSpec. Currently it is impossible to create a posix FileSpec on the Windows host.
@slydiman slydiman force-pushed the fix2-lldb-TestCompletion branch from 76a35a6 to 8701bfc Compare May 24, 2024 23:20
@slydiman slydiman requested a review from DavidSpickett May 26, 2024 11:57
Copy link
Collaborator

@labath labath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, it would be great to be able to pass the style or triple to SBFileSpec. Currently it is impossible to create a posix SBFileSpec on the Windows host.

This is definitely not intentional. Feel free to create a PR to add it.

@@ -678,8 +678,8 @@ uint32_t PlatformPOSIX::DoLoadImage(lldb_private::Process *process,
loaded_image->Clear();

std::string path;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::string path;
std::string path = remote_file.GetPath(false);

Might as well fold the assignment into the declaration.

@slydiman slydiman merged commit 1c046ca into llvm:main May 27, 2024
5 checks passed
@slydiman slydiman deleted the fix2-lldb-TestCompletion branch July 25, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[lldb] PlatformPOSIX::DoLoadImage() failed on the remote target AArch64 during the TestCompletion test
3 participants