[Lldb-commits] [PATCH] D23604: gdb-remote: Centralize thread specific packet handling

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 17 05:01:48 PDT 2016

labath created this revision.
labath added a reviewer: clayborg.
labath added a subscriber: lldb-commits.

Before this, each function had a copy of the code which handled appending of the thread suffix to
the packet (or using $Hg instead). I have moved that code into a single function and made
everyone else use that. The function takes the partial packet as a StreamString rvalue reference,
to avoid a copy and to remind the users that the packet will have undeterminate contents after
the call.

This also fixes the incorrect formatting of the QRestoreRegisterState packet in case thread
suffix is not supported.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23604.68337.patch
Type: text/x-patch
Size: 16012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160817/ddf47657/attachment-0001.bin>

More information about the lldb-commits mailing list