aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-06-24 19:47:37 +0000
committerTom Tromey <tromey@redhat.com>2011-06-24 19:47:37 +0000
commitddd49eeec46ac948def99330a62f1ce023a0d356 (patch)
treee5601b9bfd10ae4594e15548ec966ad1acfdd81f /gdb/symtab.h
parent5998129b54923c51b277ab385fbb619189525098 (diff)
downloadgdb-ddd49eeec46ac948def99330a62f1ce023a0d356.zip
gdb-ddd49eeec46ac948def99330a62f1ce023a0d356.tar.gz
gdb-ddd49eeec46ac948def99330a62f1ce023a0d356.tar.bz2
* 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.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 2716f34..4f96398 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -934,11 +934,11 @@ extern struct symbol *lookup_block_symbol (const struct block *, const char *,
/* lookup a [struct, union, enum] by name, within a specified block. */
-extern struct type *lookup_struct (char *, struct block *);
+extern struct type *lookup_struct (const char *, struct block *);
-extern struct type *lookup_union (char *, struct block *);
+extern struct type *lookup_union (const char *, struct block *);
-extern struct type *lookup_enum (char *, struct block *);
+extern struct type *lookup_enum (const char *, struct block *);
/* from blockframe.c: */