diff options
author | Pavel Labath <pavel@labath.sk> | 2022-10-13 15:22:22 +0200 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2022-10-13 15:23:58 +0200 |
commit | 32cb683d2d3aa9c8fe0f8b24bd3ad1a5ea53bdcc (patch) | |
tree | 43f62cb16f915750289d648972d78212f4ee7620 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 3f62314c235bd2475c8e2b5b874b2932a444e823 (diff) | |
download | llvm-32cb683d2d3aa9c8fe0f8b24bd3ad1a5ea53bdcc.zip llvm-32cb683d2d3aa9c8fe0f8b24bd3ad1a5ea53bdcc.tar.gz llvm-32cb683d2d3aa9c8fe0f8b24bd3ad1a5ea53bdcc.tar.bz2 |
[lldb] Place PlatformQemu Properties into anonymous namespace
It's fine right now, but will break as soon as someone else declares a
PluginProperties class in the same way.
Also tighten up the scope of the anonymous namespaces surrounding the
other PluginProperties classes.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index ecd9606..ba180cc 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -166,13 +166,13 @@ public: } }; +} // namespace + static PluginProperties &GetGlobalPluginProperties() { static PluginProperties g_settings; return g_settings; } -} // namespace - // TODO Randomly assigning a port is unsafe. We should get an unused // ephemeral port from the kernel and make sure we reserve it before passing it // to debugserver. |