This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [gdb-remote] Always send PID when detaching w/ multiprocess
ClosedPublic

Authored by mgorny on Sep 19 2021, 4:04 AM.

Details

Summary

Always send PID in the detach packet when multiprocess extensions are
enabled. This is required by qemu's GDB server, as plain 'D' packet
results in an error and the emulated system is not resumed.

Diff Detail

Event Timeline

mgorny requested review of this revision.Sep 19 2021, 4:04 AM
mgorny created this revision.

A test case?

mgorny updated this revision to Diff 373545.Sep 20 2021, 3:54 AM

Add tests.

labath accepted this revision.Sep 20 2021, 4:10 AM
labath added inline comments.
lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py
384

Whether this fires depends on how python was run. Better use regular asserts. You could pass in the test case to MyResponder constructor, or stash client_supported in a member variable for later checks, or ...

This revision is now accepted and ready to land.Sep 20 2021, 4:10 AM
mgorny marked an inline comment as done.Sep 20 2021, 4:19 AM
mgorny added inline comments.
lldb/test/API/functionalities/gdb_remote_client/TestGDBRemoteClient.py
384

Sure, makes sense.

This revision was landed with ongoing or failed builds.Sep 20 2021, 4:29 AM
This revision was automatically updated to reflect the committed changes.
mgorny marked an inline comment as done.
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2021, 4:29 AM