diff --git a/src/apps/debugger/Team.cpp b/src/apps/debugger/Team.cpp index ae6186e5fb..7e48b9cf96 100644 --- a/src/apps/debugger/Team.cpp +++ b/src/apps/debugger/Team.cpp @@ -73,6 +73,15 @@ Team::AddThread(const thread_info& threadInfo, Thread** _thread) } +status_t +Team::AddThread(thread_id threadID, Thread** _thread) +{ + thread_info threadInfo; + status_t error = get_thread_info(threadID, &threadInfo); + return error == B_OK ? AddThread(threadInfo, _thread) : error; +} + + void Team::RemoveThread(Thread* thread) { diff --git a/src/apps/debugger/Team.h b/src/apps/debugger/Team.h index 48ec7e8a7f..5cc7afed41 100644 --- a/src/apps/debugger/Team.h +++ b/src/apps/debugger/Team.h @@ -29,6 +29,8 @@ public: void AddThread(Thread* thread); status_t AddThread(const thread_info& threadInfo, Thread** _thread = NULL); + status_t AddThread(thread_id threadID, + Thread** _thread = NULL); void RemoveThread(Thread* thread); bool RemoveThread(thread_id threadID); Thread* ThreadByID(thread_id threadID) const;