public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug threads/17600] New: "info thread $_thread" doesn't work @ 2014-11-13 19:49 tromey at sourceware dot org 2020-04-11 15:18 ` [Bug threads/17600] " ssbssa at sourceware dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: tromey at sourceware dot org @ 2014-11-13 19:49 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=17600 Bug ID: 17600 Summary: "info thread $_thread" doesn't work Product: gdb Version: 7.7 Status: NEW Severity: normal Priority: P2 Component: threads Assignee: unassigned at sourceware dot org Reporter: tromey at sourceware dot org I wanted to show "info threads" output for just the current thread. I tried: (gdb) info thread $_thread Convenience variable must have integer value. Args must be numbers or '$' variables. But: (gdb) p $_thread $1 = 48 It seems "info thread" is confused. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug threads/17600] "info thread $_thread" doesn't work 2014-11-13 19:49 [Bug threads/17600] New: "info thread $_thread" doesn't work tromey at sourceware dot org @ 2020-04-11 15:18 ` ssbssa at sourceware dot org 2020-07-13 16:35 ` tromey at sourceware dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: ssbssa at sourceware dot org @ 2020-04-11 15:18 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=17600 Hannes Domani <ssbssa at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot org --- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> --- To get the value of convenience variables in this case, get_internalvar_integer is used. But this only works for types INTERNALVAR_INTEGER and INTERNALVAR_VALUE, and not for INTERNALVAR_MAKE_VALUE (which $_thread is). -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug threads/17600] "info thread $_thread" doesn't work 2014-11-13 19:49 [Bug threads/17600] New: "info thread $_thread" doesn't work 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 2023-12-12 14:55 ` ssbssa at sourceware dot org 3 siblings, 0 replies; 5+ messages in thread From: tromey at sourceware dot org @ 2020-07-13 16:35 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=17600 --- Comment #2 from Tom Tromey <tromey at sourceware dot org> --- I ran into this again today and nearly re-filed it. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug threads/17600] "info thread $_thread" doesn't work 2014-11-13 19:49 [Bug threads/17600] New: "info thread $_thread" doesn't work 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 2023-12-12 14:55 ` ssbssa at sourceware dot org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2023-12-12 14:54 UTC (permalink / raw) To: gdb-prs 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug threads/17600] "info thread $_thread" doesn't work 2014-11-13 19:49 [Bug threads/17600] New: "info thread $_thread" doesn't work tromey at sourceware dot org ` (2 preceding siblings ...) 2023-12-12 14:54 ` cvs-commit at gcc dot gnu.org @ 2023-12-12 14:55 ` ssbssa at sourceware dot org 3 siblings, 0 replies; 5+ messages in thread From: ssbssa at sourceware dot org @ 2023-12-12 14:55 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=17600 Hannes Domani <ssbssa at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |15.1 Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Hannes Domani <ssbssa at sourceware dot org> --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-12-12 14:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-11-13 19:49 [Bug threads/17600] New: "info thread $_thread" doesn't work 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 2023-12-12 14:55 ` ssbssa at sourceware dot org
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).