Date: Mon, 25 Jul 2005 08:03:01 +0400 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: nox@jelal.kn-bremen.de Cc: ports@FreeBSD.org Subject: patch to emulators/qemu, pty in FreeBSD Message-ID: <42E46475.8050504@yandex.ru>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------050602010800020307030801 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit 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 --------------050602010800020307030801 Content-Type: text/plain; name="patch-vl.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-vl.c" --- 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]; --------------050602010800020307030801--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42E46475.8050504>