gdb: use gdb_tilde_expand instead of gdb_tilde_expand_up in source_script_with_search

Since this is the latest use of gdb_tilde_expand_up, remove it.

Change-Id: I964c812ce55fe087876abf91e7a3577ad79c0425
This commit is contained in:
Simon Marchi
2022-04-13 20:12:37 -04:00
committed by Simon Marchi
parent 5f2491c300
commit 56325e2ba6
2 changed files with 0 additions and 13 deletions

View File

@ -102,12 +102,3 @@ gdb_tilde_expand (const char *dir)
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 ());
}

View File

@ -23,8 +23,4 @@
/* Perform tilde expansion on DIR, and return the full path. */
extern std::string gdb_tilde_expand (const char *dir);
/* Same as GDB_TILDE_EXPAND, but return the full path as a
gdb::unique_xmalloc_ptr<char>. */
extern gdb::unique_xmalloc_ptr<char> gdb_tilde_expand_up (const char *dir);
#endif /* COMMON_GDB_TILDE_EXPAND_H */