From 4a35b02aee55ea3c8a1b473beed911aee3d424ee Mon Sep 17 00:00:00 2001 From: "Nathan J. Williams" Date: Mon, 3 Jul 2006 17:26:16 +0000 Subject: [PATCH] 2006-07-03 Nathan J. Williams * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if write_files is set. --- gdb/ChangeLog | 5 +++++ gdb/bsd-kvm.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ce9acb8eef8..1a4e88a89f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-07-03 Nathan J. Williams + + * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if + write_files is set. + 2006-06-24 Eli Zaretskii * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'. diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index 3d715a5762c..1f0db5a6dfc 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -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); -- 2.30.2