diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-06-19 11:13:14 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-06-27 15:15:26 +0100 |
commit | 632c5372771a6f167f3be554b2f84582169ffc07 (patch) | |
tree | a89a65b565b0d3631729a40651f2d880f16a5206 /gdb/completer.c | |
parent | 88aad97c21de7a39f8e63467674ef936b3e9a86d (diff) | |
download | gdb-632c5372771a6f167f3be554b2f84582169ffc07.zip gdb-632c5372771a6f167f3be554b2f84582169ffc07.tar.gz gdb-632c5372771a6f167f3be554b2f84582169ffc07.tar.bz2 |
gdb: add overloads of gdb_tilde_expand
Like the previous commit, add two overloads of gdb_tilde_expand, one
takes std::string and other takes gdb::unique_xmalloc_ptr<char>. Make
use of these overloads throughout GDB and gdbserver.
There should be no user visible changes after this commit.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/completer.c')
-rw-r--r-- | gdb/completer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/completer.c b/gdb/completer.c index bd5118f..1008ec2 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -236,7 +236,7 @@ filename_completer (struct cmd_list_element *ignore, trailing '/' ourselves now. */ if (!tracker.from_readline ()) { - std::string expanded = gdb_tilde_expand (p_rl.get ()); + std::string expanded = gdb_tilde_expand (p_rl); struct stat finfo; const bool isdir = (stat (expanded.c_str (), &finfo) == 0 && S_ISDIR (finfo.st_mode)); |