diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-06-19 11:12:28 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-06-27 15:15:25 +0100 |
commit | 88aad97c21de7a39f8e63467674ef936b3e9a86d (patch) | |
tree | 0e16dd7c4311ff0af6108ff717a182b4de618740 /gdbserver | |
parent | 973563710c2f7c184fb6769e1b1d0fc5f3f181f5 (diff) | |
download | gdb-88aad97c21de7a39f8e63467674ef936b3e9a86d.zip gdb-88aad97c21de7a39f8e63467674ef936b3e9a86d.tar.gz gdb-88aad97c21de7a39f8e63467674ef936b3e9a86d.tar.bz2 |
gdb: add overloads of gdb_abspath
Add two overloads of gdb_abspath, one which takes std::string and one
which takes gdb::unique_xmalloc_ptr<char>, then 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/server.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/server.cc b/gdbserver/server.cc index ab9a33f..30d0517 100644 --- a/gdbserver/server.cc +++ b/gdbserver/server.cc @@ -109,7 +109,7 @@ static struct { its name with CURRENT_DIRECTORY. Otherwise, we leave the name as-is because we'll try searching for it in $PATH. */ if (is_regular_file (m_path.c_str (), ®_file_errno)) - m_path = gdb_abspath (m_path.c_str ()); + m_path = gdb_abspath (m_path); } } |