Skip to content

Conversation

@JDevlieghere
Copy link

We weren't setting m_should_detach when going through the DoConnectRemote code path. This meant that when you would attaches to a remote process with gdb-remote <port> and use Ctrl+D, it would kill the process instead of detach from it.

rdar://156111423
(cherry picked from commit cce1055)

@JDevlieghere
Copy link
Author

@swift-ci test

@JDevlieghere
Copy link
Author

19:56:28  Timed Out Tests (1):
19:56:28    lldb-api :: tools/lldb-dap/attach/TestDAP_attach.py

@swift-ci test macos

@JDevlieghere
Copy link
Author

@swift-ci test windows

@JDevlieghere JDevlieghere force-pushed the jdevlieghere/radar/156111423 branch from 3bb4829 to 918e6a6 Compare November 11, 2025 20:57
@JDevlieghere
Copy link
Author

@swift-ci test

dsandersllvm and others added 2 commits November 11, 2025 15:45
While debugging the tests for llvm#155000 I found it helpful to have both
sides
of the simulated gdb-rsp traffic rather than just the responses so I've
extended
the packetLog in MockGDBServerResponder to record traffic in both
directions.
Tests have been updated accordingly

(cherry picked from commit f188c97)
…emote (llvm#166869)

We weren't setting `m_should_detach` when going through the
`DoConnectRemote` code path. This meant that when you would attaches to
a remote process with `gdb-remote <port>` and use Ctrl+D, it would kill
the process instead of detach from it.

rdar://156111423
(cherry picked from commit cce1055)
@JDevlieghere JDevlieghere force-pushed the jdevlieghere/radar/156111423 branch from 918e6a6 to 2612b02 Compare November 11, 2025 23:45
@JDevlieghere
Copy link
Author

@swift-ci test

@JDevlieghere JDevlieghere merged commit c48461d into stable/21.x Nov 12, 2025
3 checks passed
@JDevlieghere JDevlieghere deleted the jdevlieghere/radar/156111423 branch November 12, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants