diff options
author | Ken Werner <ken.werner@de.ibm.com> | 2010-08-13 16:19:48 +0000 |
---|---|---|
committer | Ken Werner <ken.werner@de.ibm.com> | 2010-08-13 16:19:48 +0000 |
commit | 76d8b686dce35cbc0f1b24a10d7fbe8f418ad48a (patch) | |
tree | 659ab9ea27800919f25c7db2adae6a4ec0215b8a /gdb/python/python.c | |
parent | dd24e3da30848eb365623643d2a7f3b13b8c26a8 (diff) | |
download | gdb-76d8b686dce35cbc0f1b24a10d7fbe8f418ad48a.zip gdb-76d8b686dce35cbc0f1b24a10d7fbe8f418ad48a.tar.gz gdb-76d8b686dce35cbc0f1b24a10d7fbe8f418ad48a.tar.bz2 |
gdb:
* python/python.c (gdbpy_solib_name): Remove the const qualifier of
the format strings to be compatible with Python 2.4.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 030b142..0f39120 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -388,10 +388,11 @@ gdbpy_solib_name (PyObject *self, PyObject *args) PyObject *str_obj; #ifdef PY_LONG_LONG 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 unsigned long pc; - const char *format = "k"; + char *format = "k"; #endif if (!PyArg_ParseTuple (args, format, &pc)) |