Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Python pretty-printing [3/6]
Date: Fri, 03 Apr 2009 16:30:00 -0000	[thread overview]
Message-ID: <20090403163024.GB28512@caradoc.them.org> (raw)
In-Reply-To: <m3bprebws2.fsf@fleche.redhat.com>

On Thu, Apr 02, 2009 at 02:55:41PM -0600, Tom Tromey wrote:
>  * Values From Inferior::
> +* Types From Inferior::		Python representation of types.

This isn't entirely a new problem, as you can see from context above,
but is there anything we can call this besides "From Inferior"?  Types
don't come from an inferior, they come from a program or an object
file.

> +The following methods are provided:
> +
> +@table @code
> +@defmethod Type Type [name]
> +Construct a new instance of @code{gdb.Type}.
> +
> +If @var{name} is given, it specifies the name of a type to look up in
> +the inferior.  @var{name} is searched for globally.
> +@end defmethod

So the constructor does a lookup.  This will be a little weird if we
want to create types from scratch someday (could be very useful).
And what happens if name is not given?  Anyway, I wonder if there
shouldn't be an explicit lookup routine instead.

> +@findex TYPE_CODE_FLAGS
> +@findex gdb.TYPE_CODE_FLAGS
> +@item TYPE_CODE_FLAGS
> +A bit flags type.
> +@c FIXME: what is this?

It's used for the x86 status register, for instance.  Try info reg
eflags.  It's more friendly than just a number (although I do get user
complaints about it; could be friendlier).

> +@findex TYPE_CODE_TEMPLATE
> +@findex gdb.TYPE_CODE_TEMPLATE
> +@item TYPE_CODE_TEMPLATE
> +A C++ template type.  Note that this is not used for a template
> +instantiation; those appear as ordinary struct types.
> +@c FIXME I hope that is true

DWARF does not represent TYPE_CODE_TEMPLATE, as far as I know.  This
was used by the HP symbol reader.  It looks like nothing in GDB
currently creates these and they could be garbage collected (with
optional reimplementation later).

> +@findex TYPE_CODE_TEMPLATE_ARG
> +@findex gdb.TYPE_CODE_TEMPLATE_ARG
> +@item TYPE_CODE_TEMPLATE_ARG
> +A C++ template argument.
> +@c FIXME: is this ever used?

No, see above.


-- 
Daniel Jacobowitz
CodeSourcery


  parent reply	other threads:[~2009-04-03 16:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-02 20:55 Tom Tromey
2009-04-03 15:16 ` Eli Zaretskii
2009-04-07 19:52   ` Tom Tromey
2009-04-07 21:45     ` Eli Zaretskii
2009-04-03 16:30 ` Daniel Jacobowitz [this message]
2009-04-06 23:26   ` Tom Tromey
2009-04-07  0:34     ` Thiago Jung Bauermann
2009-04-07  1:16     ` Daniel Jacobowitz
2009-04-07  2:03       ` Thiago Jung Bauermann
2009-04-07  2:27         ` Daniel Jacobowitz
2009-04-03 20:34 ` Thiago Jung Bauermann
2009-04-06 23:32   ` Tom Tromey
2009-04-08 18:26   ` Tom Tromey
2009-04-08 18:39 ` Tom Tromey
2009-04-08 19:23   ` Eli Zaretskii
2009-04-09  1:16     ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090403163024.GB28512@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox