diff options
author | Nathan J. Williams <nathanw@wasabisystems.com> | 2006-07-03 17:26:16 +0000 |
---|---|---|
committer | Nathan J. Williams <nathanw@wasabisystems.com> | 2006-07-03 17:26:16 +0000 |
commit | 4a35b02aee55ea3c8a1b473beed911aee3d424ee (patch) | |
tree | 9882fe505379a22d608bee83892ace4b88facbfa /gdb/bsd-kvm.c | |
parent | 1f3f1bbf0497204d85ac6637b57bc29d88c559da (diff) | |
download | gdb-4a35b02aee55ea3c8a1b473beed911aee3d424ee.zip gdb-4a35b02aee55ea3c8a1b473beed911aee3d424ee.tar.gz gdb-4a35b02aee55ea3c8a1b473beed911aee3d424ee.tar.bz2 |
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.
Diffstat (limited to 'gdb/bsd-kvm.c')
-rw-r--r-- | gdb/bsd-kvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index 3d715a5..1f0db5a 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); |