diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-09-23 14:47:00 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-09-23 14:47:00 +0100 |
commit | c180e655c186e6cacc56bbdd20bb301f5df2b10b (patch) | |
tree | 6c08620ec67ad46d5b60fd0091625371fb17a887 /xen/include/xen/gdbstub.h | |
parent | d85cf94621ab3531828430b0b50f860d0ff81887 (diff) | |
download | xen-c180e655c186e6cacc56bbdd20bb301f5df2b10b.tar.gz xen-c180e655c186e6cacc56bbdd20bb301f5df2b10b.tar.bz2 xen-c180e655c186e6cacc56bbdd20bb301f5df2b10b.zip |
Use GDB 'O' packets for console output if the serial line is shared
and GDB is attached.
It may be necessary for gdb and the console to share a serial port.
This patch utilises the GDB protocol to encode console output.
Based on a patch from Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/gdbstub.h')
-rw-r--r-- | xen/include/xen/gdbstub.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/xen/gdbstub.h b/xen/include/xen/gdbstub.h index f851f6193d..cf6e7e547c 100644 --- a/xen/include/xen/gdbstub.h +++ b/xen/include/xen/gdbstub.h @@ -33,7 +33,8 @@ char str2hex(const char *str); unsigned long str2ulong(const char *str, unsigned long bytes); struct gdb_context { - int serhnd; + int serhnd; /* handle on our serial line */ + int console_steal_id; /* handle on stolen console */ int currently_attached:1; atomic_t running; unsigned long connected; |