public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30104] New: Add "help variable", like "help function" but for convenience variables instead of functions
@ 2023-02-09 20:19 pedro at palves dot net
0 siblings, 0 replies; only message in thread
From: pedro at palves dot net @ 2023-02-09 20:19 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30104
Bug ID: 30104
Summary: Add "help variable", like "help function" but for
convenience variables instead of functions
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: pedro at palves dot net
Target Milestone: ---
We have:
(gdb) help function
Placeholder command for showing help on convenience functions.
List of function subcommands:
function _any_caller_is -- Check all calling function's names.
function _any_caller_matches -- Compare all calling function's names with a
regexp.
function _as_string -- Return the string representation of a value.
function _caller_is -- Check the calling function's name.
function _caller_matches -- Compare the calling function's name with a regexp.
...
Type "help function" followed by function subcommand name for full
documentation.
...
(gdb)
But, we don't have any way to get help about internal convenience variables.
There's "show convenience", but that's about seeing the variable's values.
IWBN if we added a "help variable" placeholder command, that would work just
like "help function", but it would list variables. Here's a mockup:
(gdb) help variable
Placeholder command for showing help on convenience variables.
List of variable subcommands:
variable _gdb_minor -- blah blah
variable _gdb_major -- blah blah
$_inferior -- blah blah
...
Type "help variable" followed by variable subcommand name for full
documentation.
...
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-09 20:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 20:19 [Bug gdb/30104] New: Add "help variable", like "help function" but for convenience variables instead of functions pedro at palves dot net
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).