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

Christian Biesinger via gdb-patches
2019-09-11T21:36:23Z

I pushed these three patches:

Total 24 (delta 21), reused 0 (delta 0)
To ssh://sourceware.org/git/binutils-gdb.git
9cab7ecda2..f2aec7f6d1 HEAD -> master

Christian

On Mon, Sep 9, 2019 at 1:08 PM Christian Biesinger
<cbiesinger@google.com> wrote:
>
> 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
>