-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[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
Conversation
@llvm/pr-subscribers-lldb Author: Dmitry Vasilyev (slydiman) ChangesPlatformPOSIX::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:
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.
|
3dcd666
to
76a35a6
Compare
✅ 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.
76a35a6
to
8701bfc
Compare
There was a problem hiding this 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::string path; | |
std::string path = remote_file.GetPath(false); |
Might as well fold the assignment into the declaration.
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.