Refactor get_init_files to use std::string
authorChristian Biesinger <cbiesinger@google.com>
Tue, 20 Aug 2019 19:45:51 +0000 (14:45 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Wed, 11 Sep 2019 21:29:10 +0000 (16:29 -0500)
commitf48cd8368bf45b40547237939af3ab6b47dc7b01
treebf960f81af49710629e73ea5ba591829d14eb1da
parent9cab7ecda21c6499b0559f6e676fe222e26141be
Refactor get_init_files to use std::string

To avoid manual memory management.

Tested on buildbot.

gdb/ChangeLog:

2019-09-11  Christian Biesinger  <cbiesinger@google.com>

* main.c (get_init_files): Change to use std::string.
(captured_main_1): Update.
(print_gdb_help): Update.
gdb/ChangeLog
gdb/main.c