[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] gdbsx: use right path for privcmd
From: Manuel Bouyer <bouyer@xxxxxxxxxx> On NetBSD the privcmd interface node is /kern/xen/privcmd Signed-off-by: Manuel Bouyer <bouyer@xxxxxxxxxx> --- tools/debugger/gdbsx/xg/xg_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/debugger/gdbsx/xg/xg_main.c b/tools/debugger/gdbsx/xg/xg_main.c index ce95648e7e..83a009c195 100644 --- a/tools/debugger/gdbsx/xg/xg_main.c +++ b/tools/debugger/gdbsx/xg/xg_main.c @@ -130,11 +130,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 /dev/xen/privcmd or /proc/xen/privcmd or /kern/xen/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 -- 2.29.2
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |