From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAEB73858C2F; Tue, 12 Dec 2023 14:54:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAEB73858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702392857; bh=PcJwgEZKboX1nOfqY9k6IHAJkWQP7LyN5DFfa6MOCrY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JzXozoYX9Cbwmz1IbAJ9WQmxPZTOGhCFEO0bAgVYQw6yHbboinRqRUSPpDyjO6kqQ HsDb/k9PlK3CephThumSDUdzc5cskbaMWablZ8hLfSsDBREaaNIofOX+YnhNhFfVoX 9eVNxCM4bwdBiVp2pEkjJgAKgNqvSxzhxW8lZaNg= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug threads/17600] "info thread $_thread" doesn't work Date: Tue, 12 Dec 2023 14:54:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Version: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D17600 --- Comment #3 from Sourceware Commits --- The master branch has been updated by Hannes Domani : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D52e0b52e6f2d= c1dc5a7b95740d22fd616241db67 commit 52e0b52e6f2dc1dc5a7b95740d22fd616241db67 Author: Hannes Domani Date: Tue Dec 12 15:53:12 2023 +0100 Support dynamically computed convenience variables in get_internalvar_integer When using $_thread in info threads to showonly the current thread, you get this error: ``` (gdb) info thread $_thread Convenience variable must have integer value. Args must be numbers or '$' variables. ``` It's because $_thread is a dynamically computed convenience variable, which isn't supported yet by get_internalvar_integer. Now the output looks like this: ``` (gdb) info threads $_thread Id Target Id Frame * 1 Thread 10640.0x2680 main () at C:/src/repos/binutils-gdb.git/gdb/testsuite/gdb.base/gdbvars.c:21 ``` Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D17600 Approved-By: Tom Tromey --=20 You are receiving this mail because: You are on the CC list for the bug.=