public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Use 'name' in DAP start_thread function
@ 2023-07-23 21:34 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-07-23 21:34 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

The DAP start_thread helper function has a 'name' parameter that is
unused.  Apparently I forgot to hook it up to the thread constructor.
This patch fixes the oversight.
---
 gdb/python/lib/gdb/dap/startup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/python/lib/gdb/dap/startup.py b/gdb/python/lib/gdb/dap/startup.py
index 15d1fb9e9e5..eba072147ee 100644
--- a/gdb/python/lib/gdb/dap/startup.py
+++ b/gdb/python/lib/gdb/dap/startup.py
@@ -35,7 +35,7 @@ def start_thread(name, target, args=()):
     """Start a new thread, invoking TARGET with *ARGS there.
     This is a helper function that ensures that any GDB signals are
     correctly blocked."""
-    result = gdb.Thread(target=target, args=args, daemon=True)
+    result = gdb.Thread(name=name, target=target, args=args, daemon=True)
     result.start()
 
 
-- 
2.41.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-23 21:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-23 21:34 [pushed] Use 'name' in DAP start_thread function Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).