This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] [gdb/python] Fix cpychecker error in recpy_bt_goto
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 04 Oct 2018 18:35:58 -0400
- Subject: [binutils-gdb] [gdb/python] Fix cpychecker error in recpy_bt_goto
*** TEST RESULTS FOR COMMIT 96b1ad866b1c861f772c5a11b556766c73c3d1ab ***
Author: Tom de Vries <tdevries@suse.de>
Branch: master
Commit: 96b1ad866b1c861f772c5a11b556766c73c3d1ab
[gdb/python] Fix cpychecker error in recpy_bt_goto
When using cpychecker, we run into this error:
...
gdb/python/py-record-btrace.c: \
In function PyObject* recpy_bt_goto(PyObject*, PyObject*):
gdb/python/py-record-btrace.c:783:25: error: Mismatching type in call to \
PyArg_ParseTuple with format code "O" [-Werror]
if (!PyArg_ParseTuple (args, "O", &obj))
argument 3 ("&obj") had type
"const struct recpy_element_object * *"
but was expecting
"struct PyObject * *"
for format code "O"
...
Fix this by using a new variable of the expected type instead.
Build and reg-tested on x86_64-linux.
2018-10-05 Tom de Vries <tdevries@suse.de>
* python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
PyArg_ParseTuple call.