Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Joel Borggrén-Franck" <joel.borggren.franck@gmail.com>
To: gdb@sourceware.org
Subject: Extending gdb.Value
Date: Fri, 24 Sep 2010 07:29:00 -0000	[thread overview]
Message-ID: <AANLkTi=oB1i9ADQgT_m1hByFVA++6A1-OUUadh14VtWA@mail.gmail.com> (raw)

So I noticed today that I cant extend gdb.Value:

(gdb) python class foo(gdb.Value): pass
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: Error when calling the metaclass bases
    type 'gdb.Value' is not an acceptable base type
Error while executing Python code.
(gdb)

So a couple of questions regarding this:

1) Is this intended?
2) If so, why?

I have just started writhing magic proxies around gdb.Value, which is quite
doable in Python, but I realized it might be easier to just 'fix' the basic
problem if there is no explicit reason to disallow using gdb.Value as a
base.

Cheers
Joel Borggrén-Franck


             reply	other threads:[~2010-09-24  7:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-24  7:29 Joel Borggrén-Franck [this message]
2010-09-29 15:18 ` Joel Borggrén-Franck
2010-09-29 21:23   ` Tom Tromey
2010-09-30  8:29     ` Joel Borggrén-Franck
2010-10-12 11:58       ` Joel Borggrén-Franck
2010-10-15 22:13         ` Tom Tromey
2010-10-19 19:20           ` Joel Borggrén-Franck

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='AANLkTi=oB1i9ADQgT_m1hByFVA++6A1-OUUadh14VtWA@mail.gmail.com' \
    --to=joel.borggren.franck@gmail.com \
    --cc=gdb@sourceware.org \
    /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