patch to emulators/qemu, pty in FreeBSD
Andrey V. Elsukov
bu7cher at yandex.ru
Mon Jul 25 04:03:03 GMT 2005
Hi!
I have make a patch to qemu for PTY(3) creating. It allow easy kernel
debug via virtual serial console.
Example:
# qemu -hda disk.img -cdrom 6.0-BETA1.iso -serial pty
# gdb
(gdb) target remote /dev/ptyp0
....
--
WBR, Andrey V. Elsukov
-------------- next part --------------
--- vl.c.orig Sat Apr 30 20:10:35 2005
+++ vl.c Sun Jul 24 16:42:14 2005
@@ -40,6 +40,10 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <dirent.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <libutil.h>
+#endif
#ifdef _BSD
#include <sys/stat.h>
#ifndef __APPLE__
@@ -1280,7 +1284,7 @@
return chr;
}
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
CharDriverState *qemu_chr_open_pty(void)
{
char slave_name[1024];
More information about the freebsd-ports
mailing list