This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: fix PR c++/9197


On Tue, Mar 19, 2013 at 10:12 AM, Doug Evans <dje@google.com> wrote:
> Interestingly, the online help of ptype says nothing about
> expressions, need to fix that.

Blech.  Thought I was using top-of-tree, but I wasn't.

(gdb) help ptype
Print definition of type TYPE.
Usage: ptype[/FLAGS] TYPE-NAME | EXPRESSION
Argument may be a type name defined by typedef, or "struct STRUCT-TAG"
or "class CLASS-NAME" or "union UNION-TAG" or "enum ENUM-TAG".
The selected stack frame's lexical context is used to look up the name.
Contrary to "whatis", "ptype" always unrolls any typedefs.

Available FLAGS are:
  /r    print in "raw" form; do not substitute typedefs
  /m    do not print methods defined in a class
  /M    print methods defined in a class
  /t    do not print typedefs defined in a class
  /T    print typedefs defined in a class

IWBN to add expressions to the sentence beginning with "Argument may
be ..." though.
[patch to follow]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]