aboutsummaryrefslogtreecommitdiff
path: root/gdb/bsd-kvm.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-06-19 11:12:28 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-06-27 15:15:25 +0100
commit88aad97c21de7a39f8e63467674ef936b3e9a86d (patch)
tree0e16dd7c4311ff0af6108ff717a182b4de618740 /gdb/bsd-kvm.c
parent973563710c2f7c184fb6769e1b1d0fc5f3f181f5 (diff)
downloadfsf-binutils-gdb-88aad97c21de7a39f8e63467674ef936b3e9a86d.zip
fsf-binutils-gdb-88aad97c21de7a39f8e63467674ef936b3e9a86d.tar.gz
fsf-binutils-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 'gdb/bsd-kvm.c')
-rw-r--r--gdb/bsd-kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c
index 7ef8c34..19353eb 100644
--- a/gdb/bsd-kvm.c
+++ b/gdb/bsd-kvm.c
@@ -117,7 +117,7 @@ bsd_kvm_target_open (const char *arg, int from_tty)
{
filename = gdb_tilde_expand (arg);
if (!IS_ABSOLUTE_PATH (filename))
- filename = gdb_abspath (filename.c_str ());
+ filename = gdb_abspath (filename);
}
const char *execfile = current_program_space->exec_filename ();