diff options
author | Tom Tromey <tom@tromey.com> | 2018-02-21 16:39:18 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-02-24 10:02:42 -0700 |
commit | 9b292f68805700c7ae46fc149231fdb79554bd17 (patch) | |
tree | a05646980c0e7f294a33ecfdc76c7a2b0cbba339 /bfd | |
parent | 281d762b1a56317171e462666b98d50bfa31a08a (diff) | |
download | gdb-9b292f68805700c7ae46fc149231fdb79554bd17.zip gdb-9b292f68805700c7ae46fc149231fdb79554bd17.tar.gz gdb-9b292f68805700c7ae46fc149231fdb79554bd17.tar.bz2 |
Remove most cleanups from linux-thread-db.c
This removes most (but not all) cleanups from linux-thread-db.c.
std::string and std::vector are used in place of manual memory
management.
The remaining cleanup in linux-thread-db.c uses
make_cleanup_free_char_ptr_vec, which requires a somewhat bigger
change.
Regression tested by the buildbot.
ChangeLog
2018-02-24 Tom Tromey <tom@tromey.com>
* linux-thread-db.c (try_thread_db_load_from_pdir_1)
(try_thread_db_load_from_dir, thread_db_load_search): Use
std::string.
(info_auto_load_libthread_db_compare): Return bool. Change
argument types.
(info_auto_load_libthread_db): Use std::vector, std::string.
Remove cleanups.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions