From ddd49eeec46ac948def99330a62f1ce023a0d356 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 24 Jun 2011 19:47:37 +0000 Subject: * varobj.c (update_dynamic_varobj_children): Make 'name' const. * symtab.h (lookup_struct, lookup_union, lookup_enum): Update. * python/python.c (gdbpy_parameter): Make 'arg' const. (execute_gdb_command): Likewise. (gdbpy_decode_line): Likewise. Copy it. (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it. (gdbpy_write): Make 'arg' const. * python/py-type.c (typy_lookup_typename): Make 'type_name' const. (gdbpy_lookup_type): Likewise. * python/py-prettyprint.c (print_children): Make 'name' const. * python/py-param.c (parmpy_init): Make 'name' const. Copy it. * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a Py_ssize_t. * python/py-function.c (fnpy_init): Make 'name' const. * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it. (gdbpy_string_to_argv): Make 'input' const. * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy it. * gdbtypes.h (lookup_typename): Update. * gdbtypes.c (lookup_typename): Make 'name' const. (lookup_struct): Likewise. (lookup_union): Likewise. (lookup_enum): Likewise. --- gdb/varobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/varobj.c') diff --git a/gdb/varobj.c b/gdb/varobj.c index e068823d55..07dbc27671 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1085,7 +1085,7 @@ update_dynamic_varobj_children (struct varobj *var, if (to < 0 || i < to) { PyObject *py_v; - char *name; + const char *name; struct value *v; struct cleanup *inner; int can_mention = from < 0 || i >= from; -- cgit v1.2.1