From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7DECB3858C74; Thu, 9 Feb 2023 20:19:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DECB3858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675973966; bh=e+O5o3cm0Huj2CEVh8M0r/CKaNrzorXb3AsyUcQT/fA=; h=From:To:Subject:Date:From; b=syaCgdfc5hzITIx4nHDsRuOR30FOTtOW5OXXqU6JH5DL7/h2hmk893lIfOnIPQrfP gsoAxvQ+PMu5yqRayOzmEFkjz13uy9c0E4UpW484AlIEY8NPct6dAcY5ZtSpPLTCwh /ldVXrg1bWjZ/TnCHtrvNDSCn90AOiGwR1T53f1o= From: "pedro at palves dot net" To: gdb-prs@sourceware.org Subject: [Bug gdb/30104] New: Add "help variable", like "help function" but for convenience variables instead of functions Date: Thu, 09 Feb 2023 20:19:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pedro at palves dot net 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D30104 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=20 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=20 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 reg= exp. ... Type "help function" followed by function subcommand name for full=20 documentation. ... (gdb) But, we don't have any way to get help about internal convenience variables= .=20 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=20 documentation. ... (gdb) --=20 You are receiving this mail because: You are on the CC list for the bug.=