public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/13115] New: cli doesn't expose set logging on/off in a way usable with gdb.parameter
@ 2011-08-19 16:54 ratmice at gmail dot com
  2011-11-16 21:15 ` [Bug python/13115] " tromey at redhat dot com
  2022-01-04 14:40 ` tromey at sourceware dot org
  0 siblings, 2 replies; 3+ messages in thread
From: ratmice at gmail dot com @ 2011-08-19 16:54 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13115

             Bug #: 13115
           Summary: cli doesn't expose set logging on/off in a way usable
                    with gdb.parameter
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
        AssignedTo: unassigned@sourceware.org
        ReportedBy: ratmice@gmail.com
    Classification: Unclassified


(gdb) python gdb.parameter("logging on")
Traceback (most recent call last):
  File "<string>", line 1, in <module>
RuntimeError: Could not find parameter `logging on'.
Error while executing Python code.
(gdb) python gdb.parameter("logging off")
Traceback (most recent call last):
  File "<string>", line 1, in <module>
RuntimeError: Could not find parameter `logging off'.
Error while executing Python code.

I believe because on/off use: add_cmd
rather than: add_setshow_boolean_cmd

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug python/13115] cli doesn't expose set logging on/off in a way usable with gdb.parameter
  2011-08-19 16:54 [Bug cli/13115] New: cli doesn't expose set logging on/off in a way usable with gdb.parameter ratmice at gmail dot com
@ 2011-11-16 21:15 ` tromey at redhat dot com
  2022-01-04 14:40 ` tromey at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2011-11-16 21:15 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13115

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com
          Component|cli                         |python

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug python/13115] cli doesn't expose set logging on/off in a way usable with gdb.parameter
  2011-08-19 16:54 [Bug cli/13115] New: cli doesn't expose set logging on/off in a way usable with gdb.parameter ratmice at gmail dot com
  2011-11-16 21:15 ` [Bug python/13115] " tromey at redhat dot com
@ 2022-01-04 14:40 ` tromey at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2022-01-04 14:40 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.1
                 CC|                            |tromey at sourceware dot org
             Status|NEW                         |RESOLVED
         Resolution|---                         |OBSOLETE

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I think this is obsoleted by:

commit 6ff9675421809af862db5b86d3756ddf4aef568f
Author: Tom de Vries <tdevries@suse.de>
Date:   Thu Nov 25 07:49:16 2021 +0100

    [gdb/cli] Add "set logging enabled", deprecate "set logging on/off"


Now there's a real boolean set/show underneath and
"set logging on" is a deprecated alias.

(gdb) python print(gdb.parameter("logging enabled"))
False

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-04 14:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19 16:54 [Bug cli/13115] New: cli doesn't expose set logging on/off in a way usable with gdb.parameter ratmice at gmail dot com
2011-11-16 21:15 ` [Bug python/13115] " tromey at redhat dot com
2022-01-04 14:40 ` tromey 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).