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/20622] Misleading error for pointer arithmetic with float operand from Python3


https://sourceware.org/bugzilla/show_bug.cgi?id=20622

--- Comment #2 from Jonathan Wakely <jwakely.gcc at gmail dot com> ---
(In reply to Jonathan Wakely from comment #1)
> I now think the right fix for this bug is not to make the arithmetic work,
> but just to change the error message to say "not an integer number or
> boolean."

Since that error comes from value_binop which isn't specific to the Python API
we probably don't want to change it. I've posted a patch to
https://sourceware.org/ml/gdb-patches/2016-09/msg00222.html which does
additional checking on the argument types before calling value_binop and fails
sooner with a more specific error message.

-- 
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]