* python/python.c (gdbpy_solib_name): Remove the const qualifier of
the format strings to be compatible with Python 2.4.
This commit is contained in:
Ken Werner 2010-08-13 16:19:48 +00:00
parent dd24e3da30
commit 76d8b686dc
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-08-13 Ken Werner <ken.werner@de.ibm.com>
* python/python.c (gdbpy_solib_name): Remove the const qualifier of
the format strings to be compatible with Python 2.4.
2010-08-13 Vladimir Prus <vladimir@codesourcery.com> 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
Easier and more stubborn MI memory read commands. Easier and more stubborn MI memory read commands.

View File

@ -388,10 +388,11 @@ gdbpy_solib_name (PyObject *self, PyObject *args)
PyObject *str_obj; PyObject *str_obj;
#ifdef PY_LONG_LONG #ifdef PY_LONG_LONG
unsigned PY_LONG_LONG pc; unsigned PY_LONG_LONG pc;
const char *format = "K"; /* To be compatible with Python 2.4 the format strings are not const. */
char *format = "K";
#else #else
unsigned long pc; unsigned long pc;
const char *format = "k"; char *format = "k";
#endif #endif
if (!PyArg_ParseTuple (args, format, &pc)) if (!PyArg_ParseTuple (args, format, &pc))