[Lldb-commits] [lldb] r218186 - Fix lldb-gdbserver build.
Todd Fiala
todd.fiala at gmail.com
Sat Sep 20 10:34:48 PDT 2014
Author: tfiala
Date: Sat Sep 20 12:34:48 2014
New Revision: 218186
URL: http://llvm.org/viewvc/llvm-project?rev=218186&view=rev
Log:
Fix lldb-gdbserver build.
Build break change by Paul Osmialowski.
Minor changes to argument passing (converted unintentional pass-by-value to pass-by-ref) by Todd.
Modified:
lldb/trunk/tools/lldb-gdbserver/lldb-gdbserver.cpp
Modified: lldb/trunk/tools/lldb-gdbserver/lldb-gdbserver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-gdbserver/lldb-gdbserver.cpp?rev=218186&r1=218185&r2=218186&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-gdbserver/lldb-gdbserver.cpp (original)
+++ lldb/trunk/tools/lldb-gdbserver/lldb-gdbserver.cpp Sat Sep 20 12:34:48 2014
@@ -152,7 +152,7 @@ dump_available_platforms (FILE *output_f
}
static void
-run_lldb_commands (const lldb::DebuggerSP &debugger_sp, const std::vector<std::string> lldb_commands)
+run_lldb_commands (const lldb::DebuggerSP &debugger_sp, const std::vector<std::string> &lldb_commands)
{
for (const auto &lldb_command : lldb_commands)
{
@@ -167,7 +167,7 @@ run_lldb_commands (const lldb::DebuggerS
}
static lldb::PlatformSP
-setup_platform (const std::string platform_name)
+setup_platform (const std::string &platform_name)
{
lldb::PlatformSP platform_sp;
@@ -180,7 +180,7 @@ setup_platform (const std::string platfo
}
Error error;
- platform_sp = Platform::Create (platform_name.c_str(), error);
+ platform_sp = Platform::Create (lldb_private::ConstString(platform_name), error);
if (error.Fail ())
{
// the host platform isn't registered with that name (at
More information about the lldb-commits
mailing list