This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/22481] Python Exception <class 'gdb.error'> Trying to read string with inappropriate type `int'.:


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]