This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/22481] Python Exception <class 'gdb.error'> Trying to read string with inappropriate type `int'.:
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 15 Sep 2018 00:04:37 +0000
- Subject: [Bug python/22481] Python Exception <class 'gdb.error'> Trying to read string with inappropriate type `int'.:
- Auto-submitted: auto-generated
- References: <bug-22481-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22481
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I think these are not really bugs in Python.
> return self.val.string()
Here, string is a method on gdb.Value that tries to extract
a string from the inferior. It's an error to call this on
an integer value.
The other cases are infinite recursion in that printer,
because the printer returns a value of type int -- which the
printer is accepting.
So, I am going to close this.
Please reopen with some commentary if you think this is in error.
--
You are receiving this mail because:
You are on the CC list for the bug.