projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[deliverable/binutils-gdb.git]
/
gdb
/
bsd-kvm.c
diff --git
a/gdb/bsd-kvm.c
b/gdb/bsd-kvm.c
index 21f978728da629ef3569f996af9cfe7aa12fe8f6..b1b1fee5f4f4e8203ff88102e2f6dc37d33e1845 100644
(file)
--- a/
gdb/bsd-kvm.c
+++ b/
gdb/bsd-kvm.c
@@
-1,6
+1,6
@@
/* BSD Kernel Data Access Library (libkvm) interface.
/* BSD Kernel Data Access Library (libkvm) interface.
- Copyright (C) 2004-20
19
Free Software Foundation, Inc.
+ Copyright (C) 2004-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-29,6
+29,7
@@
#include "gdbcore.h"
#include "inferior.h" /* for get_exec_file */
#include "gdbthread.h"
#include "gdbcore.h"
#include "inferior.h" /* for get_exec_file */
#include "gdbthread.h"
+#include "gdbsupport/pathstuff.h"
#include <fcntl.h>
#include <kvm.h>
#include <fcntl.h>
#include <kvm.h>
@@
-106,7
+107,7
@@
static void
bsd_kvm_target_open (const char *arg, int from_tty)
{
char errbuf[_POSIX2_LINE_MAX];
bsd_kvm_target_open (const char *arg, int from_tty)
{
char errbuf[_POSIX2_LINE_MAX];
- char *execfile = NULL;
+ c
onst c
har *execfile = NULL;
kvm_t *temp_kd;
char *filename = NULL;
kvm_t *temp_kd;
char *filename = NULL;
@@
-114,14
+115,13
@@
bsd_kvm_target_open (const char *arg, int from_tty)
if (arg)
{
if (arg)
{
- char *temp;
-
filename = tilde_expand (arg);
if (filename[0] != '/')
{
filename = tilde_expand (arg);
if (filename[0] != '/')
{
- temp = concat (current_directory, "/", filename, (char *)NULL);
+ gdb::unique_xmalloc_ptr<char> temp (gdb_abspath (filename));
+
xfree (filename);
xfree (filename);
- filename = temp;
+ filename = temp
.release ()
;
}
}
}
}
@@
-136,7
+136,7
@@
bsd_kvm_target_open (const char *arg, int from_tty)
core_kd = temp_kd;
push_target (&bsd_kvm_ops);
core_kd = temp_kd;
push_target (&bsd_kvm_ops);
- add_thread_silent (bsd_kvm_ptid);
+ add_thread_silent (
&bsd_kvm_ops,
bsd_kvm_ptid);
inferior_ptid = bsd_kvm_ptid;
target_fetch_registers (get_current_regcache (), -1);
inferior_ptid = bsd_kvm_ptid;
target_fetch_registers (get_current_regcache (), -1);
@@
-156,7
+156,7
@@
bsd_kvm_target::close ()
}
inferior_ptid = null_ptid;
}
inferior_ptid = null_ptid;
-
discard_all_inferiors (
);
+
exit_inferior_silent (current_inferior ()
);
}
static LONGEST
}
static LONGEST
This page took
0.028659 seconds
and
4
git commands to generate.