felipepiovezan wrote:
In order to preserve the two separate commits (and not squash them) I've merged
this into two separate PRs:
https://github.com/llvm/llvm-project/pull/132905
https://github.com/llvm/llvm-project/pull/132906
So I'll close this now.
https://github.com/llvm/llvm-project/pull/
https://github.com/felipepiovezan closed
https://github.com/llvm/llvm-project/pull/132734
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
@@ -79,34 +136,124 @@ class ThreadMemory : public lldb_private::Thread {
}
bool SetBackingThread(const lldb::ThreadSP &thread_sp) override {
-// printf ("Thread 0x%llx is being backed by thread 0x%llx\n", GetID(),
-// thread_sp->GetID());
m_backing_thread_sp =
@@ -79,34 +136,124 @@ class ThreadMemory : public lldb_private::Thread {
}
bool SetBackingThread(const lldb::ThreadSP &thread_sp) override {
-// printf ("Thread 0x%llx is being backed by thread 0x%llx\n", GetID(),
-// thread_sp->GetID());
m_backing_thread_sp =
@@ -38,23 +38,82 @@ class ThreadMemory : public lldb_private::Thread {
}
const char *GetName() override {
-if (!m_name.empty())
- return m_name.c_str();
if (m_backing_thread_sp)
return m_backing_thread_sp->GetName();
return nullptr;
}
cons
@@ -79,34 +136,124 @@ class ThreadMemory : public lldb_private::Thread {
}
bool SetBackingThread(const lldb::ThreadSP &thread_sp) override {
-// printf ("Thread 0x%llx is being backed by thread 0x%llx\n", GetID(),
-// thread_sp->GetID());
m_backing_thread_sp =
@@ -13,14 +13,14 @@
#include "lldb/Target/Thread.h"
+/// A memory thread optionally backed by a real thread.
+/// All methods of this class dispatch to the real thread, if it is not null.
+/// Otherwise the methods are no-op.
jimingham wrote:
This isn't 100%
@@ -79,34 +136,124 @@ class ThreadMemory : public lldb_private::Thread {
}
bool SetBackingThread(const lldb::ThreadSP &thread_sp) override {
-// printf ("Thread 0x%llx is being backed by thread 0x%llx\n", GetID(),
-// thread_sp->GetID());
m_backing_thread_sp =
llvmbot wrote:
@llvm/pr-subscribers-lldb
Author: Felipe de Azevedo Piovezan (felipepiovezan)
Changes
Please read the two commit messages individually.
---
Full diff: https://github.com/llvm/llvm-project/pull/132734.diff
3 Files Affected:
- (modified)
lldb/source/Plugins/OperatingSyste
https://github.com/felipepiovezan created
https://github.com/llvm/llvm-project/pull/132734
Please read the two commit messages individually.
>From 00da78461321b019303ddffcec5620859829cd40 Mon Sep 17 00:00:00 2001
From: Felipe de Azevedo Piovezan
Date: Thu, 20 Mar 2025 14:59:33 -0300
Subject: [
10 matches
Mail list logo