From 338b21b0881e16bb7116e4eb5bc41817f805ec23 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 28 Jun 2023 15:23:54 -0600 Subject: [PATCH] Use 'name' in DAP start_thread function 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.30.2