mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/gdbsx: Use right path for privcmd on NetBSD
On NetBSD the privcmd interface node is /kern/xen/privcmd Signed-off-by: Manuel Bouyer <bouyer@netbsd.org> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
This commit is contained in:
1 parent
4d0fbc2de5
commit
5e53349960
1 file changed
+5
-5
@@ -126,11 +126,11 @@ xg_init()
|
||||
int flags, saved_errno;
|
||||
|
||||
XGTRC("E\n");
|
||||
if ((_dom0_fd=open("/dev/xen/privcmd", O_RDWR)) == -1) {
|
||||
if ((_dom0_fd=open("/proc/xen/privcmd", O_RDWR)) == -1) {
|
||||
perror("Failed to open /dev/xen/privcmd or /proc/xen/privcmd\n");
|
||||
return -1;
|
||||
}
|
||||
if ((_dom0_fd=open("/dev/xen/privcmd", O_RDWR)) == -1 &&
|
||||
(_dom0_fd=open("/proc/xen/privcmd", O_RDWR)) == -1 &&
|
||||
(_dom0_fd=open("/kern/xen/privcmd", O_RDWR)) == -1) {
|
||||
perror("Failed to open privcmd\n");
|
||||
return -1;
|
||||
}
|
||||
/* Although we return the file handle as the 'xc handle' the API
|
||||
* does not specify / guarentee that this integer is in fact
|
||||
|
||||