From: Simon Farre Date: Mon, 19 Jun 2023 15:03:32 +0000 (+0200) Subject: Fixes f1a614dc8f015743e9fe7fe5f3f019303f8db718 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce65796b17d72d70e831b6d2cfc239b9d99a1f36;p=binutils-gdb.git Fixes f1a614dc8f015743e9fe7fe5f3f019303f8db718 Fixes failure reported by buildbot regarding ill-formatted Python code. --- diff --git a/gdb/python/lib/gdb/dap/threads.py b/gdb/python/lib/gdb/dap/threads.py index 253756022df..a4ca9e61488 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():