Fix Python 2.4 build break
This fixes a build failure against Python 2.4 by casting away "const" on the second argument to PyObject_GetAttrString. Similar casts to support Python 2.4 were already present in a number of other places. gdb/ 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com> * python/py-value.c (get_field_flag): Cast flag_name argument to PyObject_GetAttrString to support Python 2.4.
This commit is contained in:
parent
c296d686ed
commit
49840f2a66
@ -1,3 +1,8 @@
|
||||
2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* python/py-value.c (get_field_flag): Cast flag_name argument to
|
||||
PyObject_GetAttrString to support Python 2.4.
|
||||
|
||||
2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* MAINTAINERS (The Official FSF-appointed GDB Maintainers)
|
||||
|
@ -551,7 +551,8 @@ static int
|
||||
get_field_flag (PyObject *field, const char *flag_name)
|
||||
{
|
||||
int flag_value;
|
||||
PyObject *flag_object = PyObject_GetAttrString (field, flag_name);
|
||||
/* Python 2.4 did not have a 'const' here. */
|
||||
PyObject *flag_object = PyObject_GetAttrString (field, (char *) flag_name);
|
||||
|
||||
if (flag_object == NULL)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user