public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17454] New: ptype doesn't respect "set print object on"
@ 2014-10-03  9:01 tromey at sourceware dot org
  0 siblings, 0 replies; only message in thread
From: tromey at sourceware dot org @ 2014-10-03  9:01 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17454
           Summary: ptype doesn't respect "set print object on"
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org

I use "set print object on".
I did "ptype" on an expression and got:

(gdb) ptype/mt aEvent
type = /* real type = mozilla::WidgetMouseEvent * */
class mozilla::WidgetEvent {
  public:
    mozilla::EventClassID mClass;
    uint32_t message;
    mozilla::LayoutDeviceIntPoint refPoint;
    mozilla::LayoutDeviceIntPoint lastRefPoint;
    uint64_t time;
    mozilla::TimeStamp timeStamp;
    mozilla::BaseEventFlags mFlags;
    nsCOMPtr<nsIAtom> userType;
    nsString typeString;
    nsCOMPtr<mozilla::dom::EventTarget> target;
    nsCOMPtr<mozilla::dom::EventTarget> currentTarget;
    nsCOMPtr<mozilla::dom::EventTarget> originalTarget;
} *


I was surprised to see the declared class rather than
the runtime class here.

-- 
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:[~2014-10-03  9:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-03  9:01 [Bug c++/17454] New: ptype doesn't respect "set print object on" 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).