forked from Imagelibrary/binutils-gdb
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user