1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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).
This commit is contained in:
Ed Maste 2019-09-01 16:50:34 +00:00
parent 6c30aa54c3
commit aebac09b6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351662

View File

@ -809,7 +809,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.IsJoinable())
return;
@ -975,7 +975,7 @@ bool ProcessMonitor::Launch(LaunchArgs *args) {
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.IsJoinable())
return;