mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 12:39:59 +00:00
2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
* bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if write_files is set.
This commit is contained in:
parent
1f3f1bbf04
commit
4a35b02aee
@ -1,3 +1,8 @@
|
||||
2006-07-03 Nathan J. Williams <nathanw@wasabisystems.com>
|
||||
|
||||
* bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
|
||||
write_files is set.
|
||||
|
||||
2006-06-24 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
|
||||
|
@ -81,7 +81,8 @@ bsd_kvm_open (char *filename, int from_tty)
|
||||
}
|
||||
|
||||
execfile = get_exec_file (0);
|
||||
temp_kd = kvm_openfiles (execfile, filename, NULL, O_RDONLY, errbuf);
|
||||
temp_kd = kvm_openfiles (execfile, filename, NULL,
|
||||
write_files ? O_RDWR : O_RDONLY, errbuf);
|
||||
if (temp_kd == NULL)
|
||||
error (("%s"), errbuf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user