From 7ab2607f97e5deaeae91018edf3ef5b4255a842c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 13 Apr 2022 17:31:02 -0400 Subject: gdbsupport: make gdb_abspath 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: Iced49b8ee2f189744c5072a3b217aab5af17a993 --- gdbsupport/pathstuff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdbsupport/pathstuff.h') diff --git a/gdbsupport/pathstuff.h b/gdbsupport/pathstuff.h index 50e388aad04..04d9bf9029b 100644 --- a/gdbsupport/pathstuff.h +++ b/gdbsupport/pathstuff.h @@ -53,7 +53,7 @@ extern gdb::unique_xmalloc_ptr If CURRENT_DIRECTORY is NULL, this function returns a copy of PATH. */ -extern gdb::unique_xmalloc_ptr gdb_abspath (const char *path); +extern std::string gdb_abspath (const char *path); /* If the path in CHILD is a child of the path in PARENT, return a pointer to the first component in the CHILD's pathname below the -- cgit v1.2.1