Remove two cleanups using std::string
authorTom Tromey <tom@tromey.com>
Thu, 22 Feb 2018 23:31:15 +0000 (16:31 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 13 Mar 2018 23:41:12 +0000 (17:41 -0600)
commitb577b6af8e7f4cc53e73ee01188d1700fb8d3b82
treee0c9db0a28e74b5b6e1f8153345e43b451a68928
parente45ad1239d7d8591d5e80d8cbba7d404c6c3640f
Remove two cleanups using std::string

This patches removes cleanups from a couple of spots by using
std::string rather than manual memory management.

Regression tested by the buildbot, though note that I don't believe
the buildbot actually exercises the machoread code.

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

* machoread.c (macho_check_dsym): Change filenamep to a
std::string*.
(macho_symfile_read): Update.
* symfile.c (load_command): Use std::string.
gdb/ChangeLog
gdb/machoread.c
gdb/symfile.c
This page took 0.02873 seconds and 4 git commands to generate.