commit | 9082c8a3b804e5b30a30efac7208f09416e531d3 | [log] [tgz] |
---|---|---|
author | Jim Ingham <jingham@apple.com> | Fri Jan 28 02:23:12 2011 +0000 |
committer | Jim Ingham <jingham@apple.com> | Fri Jan 28 02:23:12 2011 +0000 |
tree | e11f150294d522bcc59b350c715a4fb574857cd6 | |
parent | 679c77b1a1956ddff405fdb6e3c40035f0cc20a7 [diff] [blame] |
Fix a little thinko in sending down the thread name to SetName. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@124464 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index ee6e3ae..afaf374 100644 --- a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1095,7 +1095,7 @@ ThreadGDBRemote *gdb_thread = static_cast<ThreadGDBRemote *> (thread_sp.get()); gdb_thread->SetThreadDispatchQAddr (thread_dispatch_qaddr); - gdb_thread->SetName (thread_name.empty() ? thread_name.c_str() : NULL); + gdb_thread->SetName (thread_name.empty() ? NULL : thread_name.c_str()); if (exc_type != 0) { const size_t exc_data_size = exc_data.size();