public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/12806] New: multi-level pretty-printing
@ 2011-05-25 18:14 tromey at redhat dot com
  2012-11-28 22:06 ` [Bug python/12806] " poenitz at htwm dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tromey at redhat dot com @ 2011-05-25 18:14 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: multi-level pretty-printing
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com


A frequently requested feature is the ability to do
"multi-level" pretty-printing.  The idea here is that a printer
can return a child which is of some synthetic type not existing
in the inferior; that way it can specify a multi-level display
of some kind.

One way to achieve this would be to make it possible for a
printer's child to itself be a printer; then use that printer
directly rather than attempting to convert to a value.

-- 
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] 10+ messages in thread

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
@ 2012-11-28 22:06 ` poenitz at htwm dot de
  2013-01-03 22:28 ` poenitz at htwm dot de
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: poenitz at htwm dot de @ 2012-11-28 22:06 UTC (permalink / raw)
  To: gdb-prs

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

Andre' Poenitz <poenitz at htwm dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |poenitz at htwm dot de

--- Comment #1 from Andre' Poenitz <poenitz at htwm dot de> 2012-11-28 22:06:38 UTC ---
Another option would be to move over to the "fat script" approach of pretty
printing (i.e. "do all in one go, top-down"). In that case the pretty printer
for an object can directly and easily decide by itself which real or which
artificial children, or grand-children, or completely unrelated data, it would
like to print and recursively invoke the "main" pretty print function to get
"standard behaviour" for the subitems. 

This would also solves issues related to missing MI variable updates for items
whose pretty print result takes global state or unrelated data into account
(see the example give in the thread triggered by
http://sourceware.org/ml/gdb-patches/2012-11/msg00027.html).

-- 
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] 10+ messages in thread

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
  2012-11-28 22:06 ` [Bug python/12806] " poenitz at htwm dot de
@ 2013-01-03 22:28 ` poenitz at htwm dot de
  2022-06-11 19:32 ` tromey at sourceware dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: poenitz at htwm dot de @ 2013-01-03 22:28 UTC (permalink / raw)
  To: gdb-prs

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

Andre' Poenitz <poenitz at htwm dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |http://sourceware.org/bugzi
                   |                            |lla/show_bug.cgi?id=14854

-- 
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] 10+ messages in thread

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
  2012-11-28 22:06 ` [Bug python/12806] " poenitz at htwm dot de
  2013-01-03 22:28 ` poenitz at htwm dot de
@ 2022-06-11 19:32 ` tromey at sourceware dot org
  2023-08-31 16:58 ` tromey at sourceware dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-06-11 19:32 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matthew.mcallister.0@gmail.
                   |                            |com

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
*** Bug 24201 has been marked as a duplicate of this bug. ***

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

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

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
                   ` (2 preceding siblings ...)
  2022-06-11 19:32 ` tromey at sourceware dot org
@ 2023-08-31 16:58 ` tromey at sourceware dot org
  2023-08-31 19:24 ` tromey at sourceware dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2023-08-31 16:58 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |30816
                 CC|                            |tromey at sourceware dot org


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=30816
[Bug 30816] [meta] Pretty-printing v2
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
                   ` (3 preceding siblings ...)
  2023-08-31 16:58 ` tromey at sourceware dot org
@ 2023-08-31 19:24 ` tromey at sourceware dot org
  2023-08-31 20:01 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2023-08-31 19:24 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Andre' from comment #1)
> Another option would be to move over to the "fat script" approach of pretty
> printing (i.e. "do all in one go, top-down").

I want to do something that's also relatively useful to DAP.
In DAP, the child of a variable may itself be a variable.
So separate objects are probably the most straightforward.
This is similar to varobj but not as bizarre.

A one-shot, full-tree approach loses laziness, which is part of DAP.
However it could be done "either direction", either by having an
object that hands tearoffs to gdb, or by eagerly iterating over
children.

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

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

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
                   ` (4 preceding siblings ...)
  2023-08-31 19:24 ` tromey at sourceware dot org
@ 2023-08-31 20:01 ` tromey at sourceware dot org
  2023-08-31 20:02 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2023-08-31 20:01 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|30816                       |
         Depends on|                            |30816


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=30816
[Bug 30816] [meta] Pretty-printing v2
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
                   ` (5 preceding siblings ...)
  2023-08-31 20:01 ` tromey at sourceware dot org
@ 2023-08-31 20:02 ` tromey at sourceware dot org
  2023-09-26 15:35 ` tromey at sourceware dot org
  2023-09-26 15:38 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2023-08-31 20:02 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
Also see https://sourceware.org/bugzilla/show_bug.cgi?id=30816#c2
Natvis has a similar feature to this.

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

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

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
                   ` (6 preceding siblings ...)
  2023-08-31 20:02 ` tromey at sourceware dot org
@ 2023-09-26 15:35 ` tromey at sourceware dot org
  2023-09-26 15:38 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2023-09-26 15:35 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12806
Bug 12806 depends on bug 30816, which changed state.

Bug 30816 Summary: [meta] Pretty-printing v2
https://sourceware.org/bugzilla/show_bug.cgi?id=30816

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

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

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

* [Bug python/12806] multi-level pretty-printing
  2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
                   ` (7 preceding siblings ...)
  2023-09-26 15:35 ` tromey at sourceware dot org
@ 2023-09-26 15:38 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2023-09-26 15:38 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
Now that the new base class is in, this could be done by
changing the varobj (and generic printing) code to recognize
when the 'children' method returns a ValuePrinter, and then
simply use that object.

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

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

end of thread, other threads:[~2023-09-26 15:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 18:14 [Bug python/12806] New: multi-level pretty-printing tromey at redhat dot com
2012-11-28 22:06 ` [Bug python/12806] " poenitz at htwm dot de
2013-01-03 22:28 ` poenitz at htwm dot de
2022-06-11 19:32 ` tromey at sourceware dot org
2023-08-31 16:58 ` tromey at sourceware dot org
2023-08-31 19:24 ` tromey at sourceware dot org
2023-08-31 20:01 ` tromey at sourceware dot org
2023-08-31 20:02 ` tromey at sourceware dot org
2023-09-26 15:35 ` tromey at sourceware dot org
2023-09-26 15:38 ` 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).