aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/gdbstub.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-09-23 14:47:00 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-09-23 14:47:00 +0100
commitc180e655c186e6cacc56bbdd20bb301f5df2b10b (patch)
tree6c08620ec67ad46d5b60fd0091625371fb17a887 /xen/include/xen/gdbstub.h
parentd85cf94621ab3531828430b0b50f860d0ff81887 (diff)
downloadxen-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.h3
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;