From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 91417385696D; Mon, 10 Oct 2022 11:19:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 91417385696D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665400760; bh=Qt2AmGLA8gIfPugyBM15qeje7wMYHea2ZD3tHK4j9BI=; h=From:To:Subject:Date:From; b=YKszk6QWzJebEpY7MMkXkvny9aCPyprtod9HtM6PfU48Mw3EhFzJKUp7FSrYbEwhO 74i+81UujAXX0Kh3XReaQcebic48MmP3A0DSTQbyrKxRmTohsRw8VcEaseKRoaWPer qv771NZD/SuxIiBrrRhs6btQLxPqCVHWDFqmSbhw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: improve infrun_debug_show_threads output X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: f54c53e9f4e01ba19a2b3a664fee42798b60e38a X-Git-Newrev: adaef6569562ec0c3feb6144d0a420149906bf01 Message-Id: <20221010111920.91417385696D@sourceware.org> Date: Mon, 10 Oct 2022 11:19:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dadaef6569562= ec0c3feb6144d0a420149906bf01 commit adaef6569562ec0c3feb6144d0a420149906bf01 Author: Andrew Burgess Date: Tue May 10 15:15:44 2022 +0100 gdb: improve infrun_debug_show_threads output =20 This commit switches to use INFRUN_SCOPED_DEBUG_START_END in the infrun_debug_show_threads function, which means the output will get an extra level of indentation, this looks a little nicer I think. Diff: --- gdb/infrun.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/infrun.h b/gdb/infrun.h index d1209a94a22..c711b9b21cc 100644 --- a/gdb/infrun.h +++ b/gdb/infrun.h @@ -62,6 +62,8 @@ infrun_debug_show_threads (const char *title, ThreadRange= threads) { if (debug_infrun) { + INFRUN_SCOPED_DEBUG_ENTER_EXIT; + infrun_debug_printf ("%s:", title); for (thread_info *thread : threads) infrun_debug_printf (" thread %s, executing =3D %d, resumed =3D %d, "