diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-21 18:13:14 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-21 18:13:14 +0000 |
commit | 10f0c4bbfa440916bce5d7407fd2b7447db31ef6 (patch) | |
tree | 7c5ef827541308d1d7876de8ff93fdd280b694e1 /gdb/cp-namespace.c | |
parent | 86f62fd71f25a7f64ff0f7747df29c3488269116 (diff) | |
download | gdb-10f0c4bbfa440916bce5d7407fd2b7447db31ef6.zip gdb-10f0c4bbfa440916bce5d7407fd2b7447db31ef6.tar.gz gdb-10f0c4bbfa440916bce5d7407fd2b7447db31ef6.tar.bz2 |
* symfile.h (obsavestring): Don't declare.
* symfile.c (obsavestring): Remove.
* ada-exp.y: Use obstack_copy0, not obsavestring.
* ada-lang.c: Use obstack_copy0, not obsavestring.
* coffread.c: Use obstack_copy0, not obsavestring.
* cp-namespace.c: Use obstack_copy0, not obsavestring.
* dbxread.c: Use obstack_copy0, not obsavestring.
* dwarf2read.c: Use obstack_copy0, not obsavestring.
* jit.c: Use obstack_copy0, not obsavestring.
* mdebugread.c: Use obstack_copy0, not obsavestring.
* psymtab.c: Use obstack_copy0, not obsavestring.
* stabsread.c: Use obstack_copy0, not obsavestring.
* xcoffread.c: Use obstack_copy0, not obsavestring.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 01844ff..8511bf1 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -173,15 +173,15 @@ cp_add_using_directive (const char *dest, * sizeof (*new->excludes)))); memset (new, 0, sizeof (*new)); - new->import_src = obsavestring (src, strlen (src), obstack); - new->import_dest = obsavestring (dest, strlen (dest), obstack); + new->import_src = obstack_copy0 (obstack, src, strlen (src)); + new->import_dest = obstack_copy0 (obstack, dest, strlen (dest)); if (alias != NULL) - new->alias = obsavestring (alias, strlen (alias), obstack); + new->alias = obstack_copy0 (obstack, alias, strlen (alias)); if (declaration != NULL) - new->declaration = obsavestring (declaration, strlen (declaration), - obstack); + new->declaration = obstack_copy0 (obstack, + declaration, strlen (declaration)); memcpy (new->excludes, VEC_address (const_char_ptr, excludes), VEC_length (const_char_ptr, excludes) * sizeof (*new->excludes)); @@ -205,9 +205,8 @@ cp_set_block_scope (const struct symbol *symbol, if (processing_has_namespace_info) { block_set_scope - (block, obsavestring (processing_current_prefix, - strlen (processing_current_prefix), - obstack), + (block, obstack_copy0 (obstack, processing_current_prefix, + strlen (processing_current_prefix)), obstack); } else if (SYMBOL_DEMANGLED_NAME (symbol) != NULL) @@ -224,7 +223,7 @@ cp_set_block_scope (const struct symbol *symbol, unsigned int prefix_len = cp_entire_prefix_len (name); block_set_scope (block, - obsavestring (name, prefix_len, obstack), + obstack_copy0 (obstack, name, prefix_len), obstack); } } |