diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-25 17:36:01 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-25 17:36:01 +0000 |
commit | 12aaed36e3f39b4dadf6bc8f74d254d4d8a3909f (patch) | |
tree | f61366b0050baf69e9284321710e3d1725e1a713 /gdb/cp-support.h | |
parent | 7fc75ca750afe059352f475d7511330506e835ef (diff) | |
download | gdb-12aaed36e3f39b4dadf6bc8f74d254d4d8a3909f.zip gdb-12aaed36e3f39b4dadf6bc8f74d254d4d8a3909f.tar.gz gdb-12aaed36e3f39b4dadf6bc8f74d254d4d8a3909f.tar.bz2 |
* cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
(cp_add_using_directive): Add 'copy_names' argument.
* cp-support.h (cp_add_using_directive): Update.
(struct using_direct) <import_src, import_dest, alias,
declaration>: Now const.
* dwarf2read.c (read_import_statement): Use obconcat.
Don't copy names passed to cp_add_using_directive.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r-- | gdb/cp-support.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h index c22c1e7..3734886 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -125,11 +125,11 @@ struct demangle_parse_info struct using_direct { - char *import_src; - char *import_dest; + const char *import_src; + const char *import_dest; - char *alias; - char *declaration; + const char *alias; + const char *declaration; struct using_direct *next; @@ -186,6 +186,7 @@ extern void cp_add_using_directive (const char *dest, const char *alias, const char *declaration, VEC (const_char_ptr) *excludes, + int copy_names, struct obstack *obstack); extern void cp_set_block_scope (const struct symbol *symbol, |