summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-02-12 09:27:24 +0000
committerPavel Labath <pavel@labath.sk>2019-02-12 09:27:24 +0000
commit52d9c62a500a2cb31c95f4e7dcf244f444934058 (patch)
treede240ffc85fa7c5f9ce2d64675f621ebdfe589e1 /lldb/source/Plugins/ScriptInterpreter/Python
parentb87ea73706257147b9af5a4a693ff22071c22fe9 (diff)
downloadbcm5719-llvm-52d9c62a500a2cb31c95f4e7dcf244f444934058.tar.gz
bcm5719-llvm-52d9c62a500a2cb31c95f4e7dcf244f444934058.zip
Extract common PlatformPOSIX/Windows code into a separate class
Summary: The two classes contained a lot of duplicated code, but there wasn't a good place to factor it to. It couldn't be the base Platform class, since we also have platforms which are only remote (such as PlatformGDBRemoteServer), and so it did not make sense for those to have an m_remote_platform member. This patch creates a new class, RemoteAwarePlatform, which can serve as a base class for platforms which can both serve as a host, and forward actions to a remote system. It is motivated partly by D56232 (which was about to add a bunch of additional duplicated methods), and partly by my own need to modify a function which happens to be implemented in both places identically. The patch moves the methods which are trivially identical in the two classes into the common base class, there were one or two more methods which could probably be merged into one, but this wasn't completely trivial, so I did not attempt to do that now. Reviewers: jingham, zturner, clayborg, asmith Subscribers: emaste, mgorny, Hui, lldb-commits Differential Revision: https://reviews.llvm.org/D58052 llvm-svn: 353812
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud