public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/17386] New: gdb.Value should have __index__ method
@ 2014-09-12 14:57 tromey at sourceware dot org
0 siblings, 0 replies; only message in thread
From: tromey at sourceware dot org @ 2014-09-12 14:57 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17386
Bug ID: 17386
Summary: gdb.Value should have __index__ method
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
I've seen multiple reports where a pretty-printer throws an
exception like
Python Exception <class 'TypeError'> 'gdb.Value' object cannot be interpreted
as an integer:
E.g., https://bugzilla.mozilla.org/show_bug.cgi?id=1058392
... but there are many more if you search for the relevant bits of
the error message.
I think one possible fix is for gdb.Value to implement the __index__
method.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-12 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12 14:57 [Bug python/17386] New: gdb.Value should have __index__ method tromey at sourceware dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).