================
@@ -589,7 +589,12 @@ static void HandleDiagnosticEvent(const lldb::SBEvent
&event, Log &log) {
// is required.
void EventThread(lldb::SBDebugger debugger, lldb::SBBroadcaster broadcaster,
llvm::StringRef client_name, Log &log) {
- llvm::set_thread_name("lldb.DAP.client." + client_name + ".event_handler");
+ std::string thread_name =
+ llvm::formatv("lldb.DAP.client.{}.event_handler", client_name);
+ if (thread_name.length() > llvm::get_max_thread_name_length())
+ thread_name = llvm::formatv("DAP.{}.evnt", client_name);
----------------
ashgti wrote:
I wonder if we should shorten the client name so it doesn't get truncated.
Right now, in server mode we use `client_%d`, but maybe we should shorten that
to just `c%d` or `conn%d`.
Also, maybe abbreviate 'event' to 'evt'?
https://github.com/llvm/llvm-project/pull/174837
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits