Return std::string from gdb_bfd_errmsg
authorTom Tromey <tom@tromey.com>
Thu, 30 Aug 2018 05:03:09 +0000 (23:03 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 13 Sep 2018 22:22:34 +0000 (16:22 -0600)
commit803c08d083556154cd4d27368e58b359e9de8b93
tree900369c589d11a5926ca59fe244987389692a526
parent5b4cbbe357aaf6462a68e1a15c9532dd3d01e06d
Return std::string from gdb_bfd_errmsg

This changes gdb_bfd_errmsg to return a std::string, removing a
cleanup.  This approach may be slightly less efficient than the
previous code, but I don't believe this is very important in this
situation.

gdb/ChangeLog
2018-09-13  Tom Tromey  <tom@tromey.com>

* utils.h (gdb_bfd_errmsg): Return std::string.
* exec.c (exec_file_attach): Update.
* compile/compile-object-load.c (compile_object_load): Update.
* utils.c (gdb_bfd_errmsg): Return std::string.
gdb/ChangeLog
gdb/compile/compile-object-load.c
gdb/exec.c
gdb/utils.c
gdb/utils.h