aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/python/py-type.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4d8f007..aa8a105 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-13 Tom Tromey <tromey@redhat.com>
+
+ * python/py-type.c (typy_has_key): Make 'field' const.
+
2011-10-13 Luis Machado <lgustavo@codesourcery.com>
* remote.c (remote_save_trace_data): Invert comparison.
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 44a2038..875f7aa 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -1176,7 +1176,7 @@ static PyObject *
typy_has_key (PyObject *self, PyObject *args)
{
struct type *type = ((type_object *) self)->type;
- char *field;
+ const char *field;
int i;
if (!PyArg_ParseTuple (args, "s", &field))