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 /gdbserver | |
parent | 88aad97c21de7a39f8e63467674ef936b3e9a86d (diff) | |
download | fsf-binutils-gdb-632c5372771a6f167f3be554b2f84582169ffc07.zip fsf-binutils-gdb-632c5372771a6f167f3be554b2f84582169ffc07.tar.gz fsf-binutils-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 'gdbserver')
-rw-r--r-- | gdbserver/win32-low.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index f672e54..41eed20 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -501,7 +501,7 @@ create_process (const char *program, char *args, /* current directory */ (inferior_cwd.empty () ? NULL - : gdb_tilde_expand (inferior_cwd.c_str ()).c_str()), + : gdb_tilde_expand (inferior_cwd).c_str()), get_client_state ().disable_randomization, &si, /* start info */ pi); /* proc info */ |