Return unique_xmalloc_ptr from target_fileio_read_stralloc
authorTom Tromey <tom@tromey.com>
Fri, 13 Oct 2017 00:20:09 +0000 (18:20 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Oct 2017 22:10:21 +0000 (16:10 -0600)
commit87028b873938aa3cc756c99e33a328640dbc30bc
treedfcd9d27e1c072452798930bc3b6f1b658f75e2c
parentb7b030adc405017f01e996a90f85e40730ef8397
Return unique_xmalloc_ptr from target_fileio_read_stralloc

Change target_fileio_read_stralloc to return unique_xmalloc_ptr and
fix up the callers.  This removes a number of cleanups.

ChangeLog
2017-10-16  Tom Tromey  <tom@tromey.com>

* linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
(linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
* target.c (target_fileio_read_stralloc): Update.
* sparc64-tdep.c (adi_is_addr_mapped): Update.
* target.h (target_fileio_read_stralloc): Return
unique_xmalloc_ptr.
gdb/ChangeLog
gdb/linux-tdep.c
gdb/sparc64-tdep.c
gdb/target.c
gdb/target.h