Change rewrite_source_path to return a unique_xmalloc_ptr
authorTom Tromey <tom@tromey.com>
Sat, 5 Aug 2017 16:29:56 +0000 (10:29 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 22 Aug 2017 15:30:12 +0000 (09:30 -0600)
commit0b581c69fe7186d7d0ea1283c7ecf9839a8827cc
treeb4aa2a0e6c53d2fadd33e3b05e04b234ba940de9
parent14278e1fdbe045df184d6dd546ff6a1e9e3c3797
Change rewrite_source_path to return a unique_xmalloc_ptr

This changes rewrite_source_path to return a unique_xmalloc_ptr and
fixes up the callers.  This allows removing some cleanups.

ChangeLog
2017-08-22  Tom Tromey  <tom@tromey.com>

* source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
* source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
(find_and_open_source, symtab_to_fullname): Update.
* psymtab.c (psymtab_to_fullname): Update.
gdb/ChangeLog
gdb/psymtab.c
gdb/source.c
gdb/source.h