-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[lldb] Fixed the test TestGdbRemoteAttachWait running on a remote target #92413
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
[lldb] Fixed the test TestGdbRemoteAttachWait running on a remote target #92413
Conversation
Install `_exe_to_attach` to a remote target if necessary.
@llvm/pr-subscribers-lldb Author: Dmitry Vasilyev (slydiman) ChangesInstall Full diff: https://github.com/llvm/llvm-project/pull/92413.diff 1 Files Affected:
diff --git a/lldb/test/API/tools/lldb-server/attach-wait/TestGdbRemoteAttachWait.py b/lldb/test/API/tools/lldb-server/attach-wait/TestGdbRemoteAttachWait.py
index f4c31fe2f5c07..a8333210a72b1 100644
--- a/lldb/test/API/tools/lldb-server/attach-wait/TestGdbRemoteAttachWait.py
+++ b/lldb/test/API/tools/lldb-server/attach-wait/TestGdbRemoteAttachWait.py
@@ -52,6 +52,9 @@ def test_attach_with_vAttachWait(self):
server = self.connect_to_debug_monitor()
self.do_handshake()
+ if self._run_args:
+ self._run_args[0] = lldbutil.install_to_target(self, self._run_args[0])
+
# Launch the first inferior (we shouldn't attach to this one).
self._launch_and_wait_for_init()
@@ -101,6 +104,9 @@ def test_launch_before_attach_with_vAttachOrWait(self):
server = self.connect_to_debug_monitor()
self.do_handshake()
+ if self._run_args:
+ self._run_args[0] = lldbutil.install_to_target(self, self._run_args[0])
+
inferior = self._launch_and_wait_for_init()
# Add attach packets.
@@ -141,6 +147,9 @@ def test_launch_after_attach_with_vAttachOrWait(self):
server = self.connect_to_debug_monitor()
self.do_handshake()
+ if self._run_args:
+ self._run_args[0] = lldbutil.install_to_target(self, self._run_args[0])
+
self.test_sequence.add_log_lines([self._attach_packet("vAttachOrWait")], True)
# Run the stream until attachWait.
context = self.expect_gdbremote_sequence()
|
@@ -52,6 +52,9 @@ def test_attach_with_vAttachWait(self): | |||
server = self.connect_to_debug_monitor() | |||
self.do_handshake() | |||
|
|||
if self._run_args: | |||
self._run_args[0] = lldbutil.install_to_target(self, self._run_args[0]) |
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.
Please do this inside _set_up_inferior
, before assigning to _run_args
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.
I have updated the patch. Thanks.
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.
Thanks.
…731b835aa Local branch amd-gfx 2b2731b Merged main:30d0850e0f780b17a37522e6503c98ebe197c5fa into amd-gfx:c4099e191a09 Remote branch main d38ea8c [lldb] Fixed the test TestGdbRemoteAttachWait running on a remote target (llvm#92413)
Install
_exe_to_attach
to a remote target if necessary.