aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-06-28 15:23:54 -0600
committerTom Tromey <tom@tromey.com>2023-07-23 15:08:40 -0600
commit338b21b0881e16bb7116e4eb5bc41817f805ec23 (patch)
treeb29d1a997c8cfc99d94edcad22ba76533d3539a1 /gdb/python
parent560c121c207af3c31c83a815de2569535fcd3aa7 (diff)
downloadgdb-338b21b0881e16bb7116e4eb5bc41817f805ec23.zip
gdb-338b21b0881e16bb7116e4eb5bc41817f805ec23.tar.gz
gdb-338b21b0881e16bb7116e4eb5bc41817f805ec23.tar.bz2
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.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/lib/gdb/dap/startup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/dap/startup.py b/gdb/python/lib/gdb/dap/startup.py
index 15d1fb9..eba0721 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()