This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [gdb-remote] Clean up the API of GDBRemoteCommunication
Changes PlannedPublic

Authored by mgorny on Aug 17 2022, 12:34 PM.

Details

Summary

Make the public & protected fields and methods of GDBRemoteCommunication
private if they are not used elsewhere. This also includes the GetAck()
method that was used in unittests but did not seem essential to the test
at hand.

Remove the unused m_is_platform field.

Make ExpandRLE() a static function rather than static class method.

This is a first step towards separating the low-level packet operations
from high-level public API that is intended to be used by
ProcessGDBRemote.

Sponsored by: The FreeBSD Foundation

Diff Detail

Event Timeline

mgorny created this revision.Aug 17 2022, 12:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2022, 12:34 PM
Herald added a subscriber: arichardson. · View Herald Transcript
mgorny requested review of this revision.Aug 17 2022, 12:34 PM
mgorny planned changes to this revision.Aug 18 2022, 1:15 AM

Actually, this makes little sense without un-publicizing the inherited methods first.