diff options
author | Pavel Labath <pavel@labath.sk> | 2022-02-07 16:21:57 +0100 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2022-03-02 14:57:01 +0100 |
commit | d2edca6276d1715a02d1144eae577b3d79673d67 (patch) | |
tree | 3b7f7a41ea5e6a3aa51b6583830141bb1965c7be /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | ea998709ebbb2c0fa4e0e04cc917d0a4f9959d06 (diff) | |
download | llvm-d2edca6276d1715a02d1144eae577b3d79673d67.zip llvm-d2edca6276d1715a02d1144eae577b3d79673d67.tar.gz llvm-d2edca6276d1715a02d1144eae577b3d79673d67.tar.bz2 |
[lldb/Platform] Prepare decouple instance and plugin names
This patch changes the return value of Platform::GetName() to a
StringRef, and uses the opportunity (compile errors) to change some
callsites to use GetPluginName() instead. The two methods still remain
hardwired to return the same thing, but this will change once the ideas
in
<https://discourse.llvm.org/t/multiple-platforms-with-the-same-name/59594>
are implemented.
Differential Revision: https://reviews.llvm.org/D119146
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index ebd5f73..ed72fb8 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -2404,9 +2404,8 @@ Status ProcessGDBRemote::DoDestroy() { m_public_state.GetValue() != eStateRunning) { PlatformSP platform_sp = GetTarget().GetPlatform(); - if (platform_sp && platform_sp->GetName() && - platform_sp->GetName().GetStringRef() == - PlatformRemoteiOS::GetPluginNameStatic()) { + if (platform_sp && platform_sp->GetPluginName() == + PlatformRemoteiOS::GetPluginNameStatic()) { if (m_destroy_tried_resuming) { if (log) log->PutCString("ProcessGDBRemote::DoDestroy() - Tried resuming to " |