Windows: redirect serial port to console, by Herve Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2813 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
703eaf379e
commit
72d46479da
8
vl.c
8
vl.c
@ -2421,6 +2421,11 @@ static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out)
|
|||||||
return chr;
|
return chr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static CharDriverState *qemu_chr_open_win_con(const char *filename)
|
||||||
|
{
|
||||||
|
return qemu_chr_open_win_file(GetStdHandle(STD_OUTPUT_HANDLE));
|
||||||
|
}
|
||||||
|
|
||||||
static CharDriverState *qemu_chr_open_win_file_out(const char *file_out)
|
static CharDriverState *qemu_chr_open_win_file_out(const char *file_out)
|
||||||
{
|
{
|
||||||
HANDLE fd_out;
|
HANDLE fd_out;
|
||||||
@ -2962,6 +2967,9 @@ CharDriverState *qemu_chr_open(const char *filename)
|
|||||||
if (strstart(filename, "pipe:", &p)) {
|
if (strstart(filename, "pipe:", &p)) {
|
||||||
return qemu_chr_open_win_pipe(p);
|
return qemu_chr_open_win_pipe(p);
|
||||||
} else
|
} else
|
||||||
|
if (strstart(filename, "con:", NULL)) {
|
||||||
|
return qemu_chr_open_win_con(filename);
|
||||||
|
} else
|
||||||
if (strstart(filename, "file:", &p)) {
|
if (strstart(filename, "file:", &p)) {
|
||||||
return qemu_chr_open_win_file_out(p);
|
return qemu_chr_open_win_file_out(p);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user