public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/16223] New: add "layout mode" to ptype
@ 2013-11-25 15:33 tromey at redhat dot com
  2022-11-12 17:37 ` [Bug cli/16223] " tromey at sourceware dot org
  2022-11-12 17:40 ` tromey at sourceware dot org
  0 siblings, 2 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2013-11-25 15:33 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 16223
           Summary: add "layout mode" to ptype
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at redhat dot com

It would be nice sometimes if ptype had a "layout mode"
that inlined superclass definitions into the structure
layout, so that all the details of a given class could
be seen at once, without needing multiple invocations of ptype.

-- 
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 cli/16223] add "layout mode" to ptype
  2013-11-25 15:33 [Bug cli/16223] New: add "layout mode" to ptype tromey at redhat dot com
@ 2022-11-12 17:37 ` tromey at sourceware dot org
  2022-11-12 17:40 ` tromey at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2022-11-12 17:37 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
This would be particularly good for ptype/o

-- 
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 cli/16223] add "layout mode" to ptype
  2013-11-25 15:33 [Bug cli/16223] New: add "layout mode" to ptype tromey at redhat dot com
  2022-11-12 17:37 ` [Bug cli/16223] " tromey at sourceware dot org
@ 2022-11-12 17:40 ` tromey at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2022-11-12 17:40 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
You can see how confusing this is for ptype/o in gdb itself:

/* offset    |  size */  type = struct dwarf2_per_bfd {
                         public:
/*    0      |     8 */    bfd *obfd;
/*    8      |    88 */    struct auto_obstack : public obstack {
/* XXX 80-byte padding  */

                               /* total size (bytes):   88 */
                           } obstack;


Here the "padding" comment is just wrong, but the type-printer
is confused because it doesn't really do anything sensible
with superclasses.

-- 
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-11-12 17:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-25 15:33 [Bug cli/16223] New: add "layout mode" to ptype tromey at redhat dot com
2022-11-12 17:37 ` [Bug cli/16223] " tromey at sourceware dot org
2022-11-12 17: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).