Change buildsym_compunit::comp_dir to be a unique_xmalloc_ptr
authorTom Tromey <tom@tromey.com>
Sun, 20 May 2018 16:22:19 +0000 (10:22 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:14 +0000 (08:55 -0600)
commit905eb0e293820ae91941100ebed291a8f74e1f12
treec2ccbf9b9fb5de3a825614511b5b97f7a5883c6e
parentb248663fe5654192101fc95dbe0cbfb389564359
Change buildsym_compunit::comp_dir to be a unique_xmalloc_ptr

This change buildsym_compunit::comp_dir to be a unique_xmalloc_ptr.
This is just a small cleanup to remove some manual memory management.

gdb/ChangeLog
2018-07-16  Tom Tromey  <tom@tromey.com>

* buildsym.c (~buildsym_compunit): Update.
(struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
(start_subfile, patch_subfile_names)
(end_symtab_with_blockvector): Update.
gdb/ChangeLog
gdb/buildsym.c