gdbsupport: make gdb_realpath_keepfile return an std::string
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 13 Apr 2022 21:39:06 +0000 (17:39 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 18 Apr 2022 19:48:03 +0000 (15:48 -0400)
commit5f2491c300636a2091a2ca3db7773d52d04bf566
treee85460da53174cd4de6c5b8aad0f8941f6b12f82
parent7ab2607f97e5deaeae91018edf3ef5b4255a842c
gdbsupport: make gdb_realpath_keepfile return an std::string

I'm trying to switch these functions to use std::string instead of char
arrays, as much as possible.  Some callers benefit from it (can avoid
doing a copy of the result), while others suffer (have to make one more
copy).

Change-Id: I793aab17baaef8345488f4c40b9094e2695425bc
gdb/exec.c
gdbsupport/pathstuff.cc
gdbsupport/pathstuff.h