[Lldb-commits] [lldb] r296963 - Project file fixes after movement of Data* and removal of ThisThread.cpp

2017-03-04 Thread Sean Callanan via lldb-commits
Author: spyffe
Date: Sat Mar  4 02:05:54 2017
New Revision: 296963

URL: http://llvm.org/viewvc/llvm-project?rev=296963&view=rev
Log:
Project file fixes after movement of Data* and removal of ThisThread.cpp

Modified:
lldb/trunk/lldb.xcodeproj/project.pbxproj

Modified: lldb/trunk/lldb.xcodeproj/project.pbxproj
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/lldb.xcodeproj/project.pbxproj?rev=296963&r1=296962&r2=296963&view=diff
==
--- lldb/trunk/lldb.xcodeproj/project.pbxproj (original)
+++ lldb/trunk/lldb.xcodeproj/project.pbxproj Sat Mar  4 02:05:54 2017
@@ -399,8 +399,6 @@
2689003113353E0400698AC0 /* Broadcaster.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 26BC7E6D10F1B85900F91463 /* Broadcaster.cpp */; 
};
2689003213353E0400698AC0 /* Communication.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 26BC7E6E10F1B85900F91463 /* Communication.cpp 
*/; };
2689003313353E0400698AC0 /* Connection.cpp in Sources */ = {isa 
= PBXBuildFile; fileRef = 26BC7E6F10F1B85900F91463 /* Connection.cpp */; };
-   2689003613353E0400698AC0 /* DataBufferHeap.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 26BC7E7210F1B85900F91463 /* DataBufferHeap.cpp 
*/; };
-   2689003813353E0400698AC0 /* DataExtractor.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 26BC7E7110F1B85900F91463 /* DataExtractor.cpp 
*/; };
2689003913353E0400698AC0 /* Debugger.cpp in Sources */ = {isa = 
PBXBuildFile; fileRef = 263664921140A4930075843B /* Debugger.cpp */; };
2689003A13353E0400698AC0 /* Disassembler.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 26BC7E7610F1B85900F91463 /* Disassembler.cpp */; 
};
2689003B13353E0400698AC0 /* EmulateInstruction.cpp in Sources 
*/ = {isa = PBXBuildFile; fileRef = 26D9FDC812F784FD0003F2EE /* 
EmulateInstruction.cpp */; };
@@ -423,7 +421,6 @@
2689005213353E0400698AC0 /* Timer.cpp in Sources */ = {isa = 
PBXBuildFile; fileRef = 26BC7E9610F1B85900F91463 /* Timer.cpp */; };
2689005313353E0400698AC0 /* UserID.cpp in Sources */ = {isa = 
PBXBuildFile; fileRef = 26BC7E9810F1B85900F91463 /* UserID.cpp */; };
2689005413353E0400698AC0 /* UserSettingsController.cpp in 
Sources */ = {isa = PBXBuildFile; fileRef = 9A4633DC11F65D9A00955CE1 /* 
UserSettingsController.cpp */; };
-   2689005513353E0400698AC0 /* UUID.cpp in Sources */ = {isa = 
PBXBuildFile; fileRef = 26C81CA511335651004BDC5A /* UUID.cpp */; };
2689005613353E0400698AC0 /* Value.cpp in Sources */ = {isa = 
PBXBuildFile; fileRef = 26BC7E9910F1B85900F91463 /* Value.cpp */; };
2689005713353E0400698AC0 /* ValueObject.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 26BC7E9A10F1B85900F91463 /* ValueObject.cpp */; 
};
2689005813353E0400698AC0 /* ValueObjectChild.cpp in Sources */ 
= {isa = PBXBuildFile; fileRef = 26BC7E9B10F1B85900F91463 /* 
ValueObjectChild.cpp */; };
@@ -693,8 +690,6 @@
3FDFE56C19AF9C44009756A7 /* HostProcessPosix.cpp in Sources */ 
= {isa = PBXBuildFile; fileRef = 3FDFE56A19AF9C44009756A7 /* 
HostProcessPosix.cpp */; };
3FDFE56D19AF9C44009756A7 /* HostThreadPosix.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 3FDFE56B19AF9C44009756A7 /* HostThreadPosix.cpp 
*/; };
3FDFED0B19B7C8DE009756A7 /* HostThreadMacOSX.mm in Sources */ = 
{isa = PBXBuildFile; fileRef = 3FDFED0519B7C898009756A7 /* HostThreadMacOSX.mm 
*/; };
-   3FDFED0C19B7C8E7009756A7 /* ThisThread.cpp in Sources */ = {isa 
= PBXBuildFile; fileRef = 3FDFED0619B7C898009756A7 /* ThisThread.cpp */; };
-   3FDFED0F19B7D269009756A7 /* ThisThread.cpp in Sources */ = {isa 
= PBXBuildFile; fileRef = 3FDFED0D19B7D269009756A7 /* ThisThread.cpp */; };
3FDFED2719BA6D96009756A7 /* HostNativeThreadBase.cpp in Sources 
*/ = {isa = PBXBuildFile; fileRef = 3FDFED2419BA6D96009756A7 /* 
HostNativeThreadBase.cpp */; };
3FDFED2819BA6D96009756A7 /* HostThread.cpp in Sources */ = {isa 
= PBXBuildFile; fileRef = 3FDFED2519BA6D96009756A7 /* HostThread.cpp */; };
3FDFED2919BA6D96009756A7 /* ThreadLauncher.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 3FDFED2619BA6D96009756A7 /* ThreadLauncher.cpp 
*/; };
@@ -711,7 +706,11 @@
4984BA181B979C08008658D4 /* ExpressionVariable.h in Headers */ 
= {isa = PBXBuildFile; fileRef = 4984BA171B979C08008658D4 /* 
ExpressionVariable.h */; };
49A1CAC51430E8DE00306AC9 /* ExpressionSourceCode.cpp in Sources 
*/ = {isa = PBXBuildFile; fileRef = 49A1CAC31430E8BD00306AC9 /* 
ExpressionSourceCode.cpp */; };
49A71FE7141FFA5C00D59478 /* IRInterpreter.cpp in Sources */ = 
{isa = PBXBuildFile; fileRef = 496B01581406DE8900F830D5 /* IRInterpreter.cpp 
*/; };
-   49A71FE8141FFACF00D5

[Lldb-commits] [lldb] r296972 - Truncate thread names if they're too long.

2017-03-04 Thread Zachary Turner via lldb-commits
Author: zturner
Date: Sat Mar  4 10:42:25 2017
New Revision: 296972

URL: http://llvm.org/viewvc/llvm-project?rev=296972&view=rev
Log:
Truncate thread names if they're too long.

Modified:
lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=296972&r1=296971&r2=296972&view=diff
==
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Sat Mar  4 10:42:25 2017
@@ -14,6 +14,8 @@
 
 // Other libraries and framework includes
 #include "llvm/Support/ScopedPrinter.h"
+#include "llvm/Support/Threading.h"
+
 // Project includes
 #include "Plugins/Process/Utility/InferiorCallPOSIX.h"
 #include "lldb/Breakpoint/BreakpointLocation.h"
@@ -3733,8 +3735,8 @@ bool Process::StartPrivateStateThread(bo
   // Create a thread that watches our internal state and controls which
   // events make it to clients (into the DCProcess event queue).
   char thread_name[1024];
-
-  if (HostInfo::GetMaxThreadNameLength() <= 30) {
+  uint32_t max_len = llvm::get_max_thread_name_length();
+  if (max_len > 0 && max_len <= 30) {
 // On platforms with abbreviated thread name lengths, choose thread names
 // that fit within the limit.
 if (already_running)


___
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits