Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Siva Chandra <sivachandra@google.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: Invoking methods on gdb.Value objects and other ideas
Date: Tue, 17 Dec 2013 22:08:00 -0000	[thread overview]
Message-ID: <CAGyQ6gy2ZsZwYDKmQ12AmZ5j6ArQA-uJMRqN3n9wcm0VDJL7Uw@mail.gmail.com> (raw)
In-Reply-To: <CAGyQ6gyGWCN6y46CtwrvyDpQEX-g2pSvXBiP=j3mOwP9efG31g@mail.gmail.com>

Tom> The above seem to be found methods, but it seems that to be complete
Tom> you'd also want a way to create a C++ pointer-to-member.  I guess this
Tom> is more cleanly done via the Type API, or perhaps a method on your
Tom> proposed TypeMethod object.

Siva> About C++ pointer-to-member values, I think they are in a way methods
Siva> already, and hence could just be invoked by '(...)' method invocation?

I think I misread Tom here.

I agree with Tom that a method on gdb.TypeMethod objects could return
a gdb.TypeMethodPtr object.

[With my little experience with GDB, I always use an example to
understand what TYPE_CODE_METHOD and TYPE_CODE_METHODPTR are supposed
to mean and how they differ. Added to this, if type_obj is a gdb.Type
object of type TYPE_CODE_METHOD, type_obj.pointer() does not give a
TYPE_CODE_METHODPTR object!]


      reply	other threads:[~2013-12-17 22:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-13 17:46 Siva Chandra
2013-12-16 22:48 ` Tom Tromey
2013-12-17  0:55   ` Siva Chandra
2013-12-17 22:08     ` Siva Chandra [this message]

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=CAGyQ6gy2ZsZwYDKmQ12AmZ5j6ArQA-uJMRqN3n9wcm0VDJL7Uw@mail.gmail.com \
    --to=sivachandra@google.com \
    --cc=gdb@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