public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.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	[thread overview]
Message-ID: <bug-17600-4717-77v8QtYvKI@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-17600-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=17600

--- Comment #3 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Hannes Domani <ssbssa@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=52e0b52e6f2dc1dc5a7b95740d22fd616241db67

commit 52e0b52e6f2dc1dc5a7b95740d22fd616241db67
Author: Hannes Domani <ssbssa@yahoo.de>
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=17600
    Approved-By: Tom Tromey <tom@tromey.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2023-12-12 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13 19:49 [Bug threads/17600] New: " tromey at sourceware dot org
2020-04-11 15:18 ` [Bug threads/17600] " ssbssa at sourceware dot org
2020-07-13 16:35 ` tromey at sourceware dot org
2023-12-12 14:54 ` cvs-commit at gcc dot gnu.org [this message]
2023-12-12 14:55 ` ssbssa at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-17600-4717-77v8QtYvKI@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).