/* Perform tilde expansion on paths for GDB and gdbserver.
- Copyright (C) 2017-2022 Free Software Foundation, Inc.
+ Copyright (C) 2017-2023 Free Software Foundation, Inc.
This file is part of GDB.
gdb_assert (glob.pathc () == 1);
return std::string (glob.pathv ()[0]) + remainder;
}
-
-/* See gdbsupport/gdb_tilde_expand.h. */
-
-gdb::unique_xmalloc_ptr<char>
-gdb_tilde_expand_up (const char *dir)
-{
- const std::string expanded = gdb_tilde_expand (dir);
- return make_unique_xstrdup (expanded.c_str ());
-}