Return std::string from perror_string
authorTom Tromey <tom@tromey.com>
Mon, 14 Aug 2017 05:47:01 +0000 (23:47 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 3 Sep 2017 19:03:09 +0000 (13:03 -0600)
commit18e9961f02b326923553f34682f4dcca0f25702e
treedb2c3525e338e8d12be7a24e41a8710f1b7b1a19
parent453437863c82afc8ed5bfcb937a2e297957fc212
Return std::string from perror_string

Change perror_string to return a std::string, removing a cleanup in
the process.

ChangeLog
2017-09-03  Tom Tromey  <tom@tromey.com>

* utils.c (perror_string): Return a std::string.
(throw_perror_with_name, perror_warning_with_name): Update.
gdb/ChangeLog
gdb/utils.c