[PATCH 0/3] Refactor some path methods in main.c to use std::string

Christian Biesinger via gdb-patches
2019-09-09T18:08:37Z

Patches 1 and 2 in this series are extracted from my previous patch series
to support a system gdbinit.d directory, but since they are independent from
that and (I hope) less controversial, I moved them here in hopes to get them
committed sooner.
(https://sourceware.org/ml/gdb-patches/2019-08/msg00436.html)

Patch 3 is new.

Christian Biesinger (3):
Refactor get_init_files to use std::string
Factor out the code to do the datadir-relocation for gdbinit
Make relocate_{path,gdb_directory} return std::string

gdb/auto-load.c | 2 +-
gdb/defs.h | 8 +-
gdb/guile/guile.c | 5 +-
gdb/jit.c | 4 +-
gdb/main.c | 210 ++++++++++++++++++++++----------------------
gdb/python/python.c | 2 +-
gdb/top.c | 2 +-
gdb/xml-syscall.c | 7 +-
8 files changed, 123 insertions(+), 117 deletions(-)

--
2.23.0.187.g17f5b7556c-goog