Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Extending gdb.Value
@ 2010-09-24  7:29 Joel Borggrén-Franck
  2010-09-29 15:18 ` Joel Borggrén-Franck
  0 siblings, 1 reply; 7+ messages in thread
From: Joel Borggrén-Franck @ 2010-09-24  7:29 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-19 19:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-24  7:29 Extending gdb.Value Joel Borggrén-Franck
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox