From: Tom Tromey Date: Wed, 28 Jun 2023 21:23:54 +0000 (-0600) Subject: Use 'name' in DAP start_thread function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=338b21b0881e16bb7116e4eb5bc41817f805ec23;p=binutils-gdb.git 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. --- 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()