* [PATCH] Remove windows_process_info::main_thread_id
@ 2026-09-04 17:56 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2026-09-04 17:56 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
Hannes pointed out that windows_process_info::main_thread_id is no
longer needed. This patch removes it.
---
gdb/nat/windows-nat.h | 1 -
gdbserver/win32-low.cc | 4 +---
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/gdb/nat/windows-nat.h b/gdb/nat/windows-nat.h
index fcdf43e270e..5289ca8174f 100644
--- a/gdb/nat/windows-nat.h
+++ b/gdb/nat/windows-nat.h
@@ -221,7 +221,6 @@ struct windows_process_info
/* The process handle */
HANDLE handle = 0;
DWORD process_id = 0;
- DWORD main_thread_id = 0;
#ifdef __CYGWIN__
/* True if the inferior was created through Cygwin's spawn path
diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc
index 1103a802db7..c7d3a8d744f 100644
--- a/gdbserver/win32-low.cc
+++ b/gdbserver/win32-low.cc
@@ -293,7 +293,6 @@ do_initial_child_stuff (HANDLE proch, DWORD pid, int attached)
windows_process.handle = proch;
windows_process.process_id = pid;
- windows_process.main_thread_id = 0;
windows_process.open_process_used = true;
@@ -1056,11 +1055,10 @@ get_child_debug_event (DWORD *continue_status,
}
windows_process.handle = current_event->u.CreateProcessInfo.hProcess;
- windows_process.main_thread_id = current_event->dwThreadId;
/* Add the main thread. */
child_add_thread (current_event->dwProcessId,
- windows_process.main_thread_id,
+ current_event->dwThreadId,
current_event->u.CreateProcessInfo.hThread,
current_event->u.CreateProcessInfo.lpThreadLocalBase);
break;
base-commit: 28465a8e501a0d91fbf8d1bf70ae4833f9cf35c1
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-04 17:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 17:56 [PATCH] Remove windows_process_info::main_thread_id Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox