Wrap PyObject_Get/HasAttrString in a function with second arg having const qualifier.
authorSiva Chandra <sivachandra@chromium.org>
Wed, 4 Jun 2014 17:50:11 +0000 (10:50 -0700)
committerSiva Chandra <sivachandra@chromium.org>
Tue, 10 Jun 2014 18:52:12 +0000 (11:52 -0700)
commit5a6c770930a54585c6d4bd9257ce7636b469d7c1
treecffd264fe5becaf1e6d325885c7e569e03ab2d1e
parentd9949a367352c66b7d90ca32bdbd5cac38c14b53
Wrap PyObject_Get/HasAttrString in a function with second arg having const qualifier.

This is done to avoid errors when compiled with -Werror against Python-2.4
which did not have the const qualifier for the second argument of these
functions.

gdb/
* python/python-internal.h (gdb_PyObject_GetAttrString)
(gdb_PyObject_HasAttrString): New inline function definitions.
* py-value.c (get_field_flag): Remove the now unnecessary cast to
char * of the second argument to PyObject_GetAttrString.
gdb/ChangeLog
gdb/python/py-value.c
gdb/python/python-internal.h