Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2020 16:44:24 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r363971 - projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD
Message-ID:  <202008061644.076GiOTk065883@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Aug  6 16:44:24 2020
New Revision: 363971
URL: https://svnweb.freebsd.org/changeset/base/363971

Log:
  Reapply r351662 (by emaste):
  
  lldb: shorten thread names to make logs easier to follow
  
  lldb prepends the thread name to log entries, and the existing thread
  name for the FreeBSD ProcessMonitor thread was longer than the kernel's
  supported thread name length, and so was truncated.  This made logs hard
  to read, as the truncated thread name ran into the log message.  Shorten
  "lldb.process.freebsd.operation" to just "freebsd.op" so that logs are
  more readable.
  
  (Upstreaming to lldb still to be done).

Modified:
  projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp

Modified: projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
==============================================================================
--- projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp	Thu Aug  6 16:42:48 2020	(r363970)
+++ projects/clang1100-import/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp	Thu Aug  6 16:44:24 2020	(r363971)
@@ -786,7 +786,7 @@ ProcessMonitor::~ProcessMonitor() { StopMonitor(); }
 
 // Thread setup and tear down.
 void ProcessMonitor::StartLaunchOpThread(LaunchArgs *args, Status &error) {
-  static const char *g_thread_name = "lldb.process.freebsd.operation";
+  static const char *g_thread_name = "freebsd.op";
 
   if (m_operation_thread && m_operation_thread->IsJoinable())
     return;
@@ -956,7 +956,7 @@ FINISH:
 
 void ProcessMonitor::StartAttachOpThread(AttachArgs *args,
                                          lldb_private::Status &error) {
-  static const char *g_thread_name = "lldb.process.freebsd.operation";
+  static const char *g_thread_name = "freebsd.op";
 
   if (m_operation_thread && m_operation_thread->IsJoinable())
     return;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008061644.076GiOTk065883>