diff options
author | Tom de Vries <tdevries@suse.de> | 2018-10-02 21:47:54 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2018-10-05 00:20:08 +0200 |
commit | 5c4481cc9bf9dfec3c35aaf5d95b08542ab8970b (patch) | |
tree | 4bfa9625dfd5e055eb25fe1e868a0bf2ea7b7b7f /gdb/python | |
parent | 96b1ad866b1c861f772c5a11b556766c73c3d1ab (diff) | |
download | binutils-gdb-5c4481cc9bf9dfec3c35aaf5d95b08542ab8970b.tar.gz |
[gdb/python] Fix cpychecker error in pspy_solib_name
When using cpychecker, we run into:
...
gdb/python/py-progspace.c: \
In function ‘PyObject* pspy_solib_name(PyObject*, PyObject*)’:
gdb/python/py-progspace.c:370:25: error: Mismatching type in call to \
PyArg_ParseTuple with format code "K" [-Werror]
if (!PyArg_ParseTuple (args, GDB_PY_LLU_ARG, &pc))
argument 3 ("&pc") had type
"gdb_py_longest *" (pointing to 64 bits)
but was expecting
"long long unsigned int *" (pointing to 64 bits)
for format code "K"
...
Fix this fixing the type of the variable.
Build and reg-tested on x86_64-linux.
2018-10-05 Tom de Vries <tdevries@suse.de>
* python/py-progspace.c (pspy_solib_name): Fix type mismatch in
PyArg_ParseTuple call.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-progspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index 1e16b845e0a..6395d5bb155 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -362,7 +362,7 @@ static PyObject * pspy_solib_name (PyObject *o, PyObject *args) { char *soname; - gdb_py_longest pc; + gdb_py_ulongest pc; pspace_object *self = (pspace_object *) o; PSPY_REQUIRE_VALID (self); |