This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/20622] Misleading error for pointer arithmetic with float operand from Python3
- From: "jwakely.gcc at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 20 Sep 2016 14:54:31 +0000
- Subject: [Bug python/20622] Misleading error for pointer arithmetic with float operand from Python3
- Auto-submitted: auto-generated
- References: <bug-20622-4717@http.sourceware.org/bugzilla/>
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.