Use obstack_strdup more
authorTom Tromey <tom@tromey.com>
Sat, 18 May 2019 21:56:03 +0000 (15:56 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 7 Aug 2019 02:08:48 +0000 (20:08 -0600)
commit021887d88a040cf39f3afbd7da10bbe3ff1ad6c3
treefff72470225d1f60510c029d5e61fdeadcf32f38
parentb3c6d7ff98954032a3e7989dbd1f50f041e010bb
Use obstack_strdup more

This changes gdb to use obstack_strdup when appropriate, rather than
the wordier obstack_copy0.

gdb/ChangeLog
2019-08-06  Tom Tromey  <tom@tromey.com>

* xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
obstack_strdup.
* typeprint.c (typedef_hash_table::find_global_typedef): Use
obstack_strdup.
* symfile.c (allocate_compunit_symtab): Use obstack_strdup.
* stabsread.c (common_block_start): Use obstack_strdup.
* objfiles.c (set_objfile_main_name, objfile): Use
obstack_strdup.
* namespace.c (add_using_directive): Use obstack_strdup.
* mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
* jit.c (finalize_symtab): Use obstack_strdup.
* dwarf2read.c (fixup_go_packaging, dwarf2_physname)
(guess_partial_die_structure_name, partial_die_info::fixup)
(dwarf2_name): Use obstack_strdup.
* coffread.c (coff_read_struct_type, coff_read_enum_type): Use
obstack_strdup.
* c-exp.y (scan_macro_expansion): Use obstack_strdup.
* buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
obstack_strdup.
* ada-lang.c (ada_decode_symbol): Use obstack_strdup.
14 files changed:
gdb/ChangeLog
gdb/ada-lang.c
gdb/buildsym.c
gdb/c-exp.y
gdb/coffread.c
gdb/dwarf2read.c
gdb/jit.c
gdb/mdebugread.c
gdb/namespace.c
gdb/objfiles.c
gdb/stabsread.c
gdb/symfile.c
gdb/typeprint.c
gdb/xcoffread.c
This page took 0.025113 seconds and 4 git commands to generate.