From 632c5372771a6f167f3be554b2f84582169ffc07 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Wed, 19 Jun 2024 11:13:14 +0100 Subject: 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. Make use of these overloads throughout GDB and gdbserver. There should be no user visible changes after this commit. Approved-By: Tom Tromey --- gdbserver/win32-low.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdbserver') 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 */ -- cgit v1.1