]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Windows gdb+gdbserver: New find_thread, replaces thread_rec(DONT_INVALIDATE_CONTEXT)
authorPedro Alves <pedro@palves.net>
Mon, 8 May 2023 16:09:58 +0000 (17:09 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 19 May 2025 13:12:37 +0000 (14:12 +0100)
commitcecc6f590d4ff6329ae37bcd8d4974458ba68896
tree9cb4f9de783b49bf16b1e6dd14f9af6f108a6782
parent76ffbd8d09410770e77691f9a87592519fbab496
Windows gdb+gdbserver: New find_thread, replaces thread_rec(DONT_INVALIDATE_CONTEXT)

The goal of the next few patches is to eliminate thread_rec
completely.  This is the first patch in that effort.

thread_rec(DONT_INVALIDATE_CONTEXT) is really just a thread lookup
with no side effects, so this adds a find_thread function that lets
you do that.

Approved-By: Tom Tromey <tom@tromey.com>
Change-Id: Ie486badce00e234b10caa478b066c34537103e3f
gdb/nat/windows-nat.c
gdb/nat/windows-nat.h
gdb/windows-nat.c
gdbserver/win32-low.cc
gdbserver/win32-low.h