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 | 95247b4e30f40f73f6ad9c5531344c6dfef32b0f (patch) | |
tree | c077055dcdb5fbccff41d7d89610ac400b86a8f2 /gdb/bsd-kvm.c | |
parent | f42b4f15bd0477a38e2c7c2ae065735992c7e07a (diff) | |
download | gdb-95247b4e30f40f73f6ad9c5531344c6dfef32b0f.tar.gz |
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 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); |