aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Farre <simon.farre.cx@gmail.com>2023-06-19 17:03:32 +0200
committerSimon Farre <simon.farre.cx@gmail.com>2023-06-19 17:06:05 +0200
commitce65796b17d72d70e831b6d2cfc239b9d99a1f36 (patch)
tree925cb9fd8530392a90172363f8b761b12f76e652 /gdb
parent28ab59607ef40b9571c0702ffba8f6aa6fb1b033 (diff)
downloadfsf-binutils-gdb-ce65796b17d72d70e831b6d2cfc239b9d99a1f36.zip
fsf-binutils-gdb-ce65796b17d72d70e831b6d2cfc239b9d99a1f36.tar.gz
fsf-binutils-gdb-ce65796b17d72d70e831b6d2cfc239b9d99a1f36.tar.bz2
Fixes f1a614dc8f015743e9fe7fe5f3f019303f8db718
Fixes failure reported by buildbot regarding ill-formatted Python code.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/python/lib/gdb/dap/threads.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/lib/gdb/dap/threads.py b/gdb/python/lib/gdb/dap/threads.py
index 2537560..a4ca9e6 100644
--- a/gdb/python/lib/gdb/dap/threads.py
+++ b/gdb/python/lib/gdb/dap/threads.py
@@ -18,6 +18,7 @@ import gdb
from .server import request
from .startup import send_gdb_with_response, in_gdb_thread
+
def _thread_name(thr):
if thr.name is not None:
return thr.name
@@ -25,6 +26,7 @@ def _thread_name(thr):
return thr.details
return None
+
# A helper function to construct the list of threads.
@in_gdb_thread
def _get_threads():