This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] [RESEND] [PATCH] Use GDB 'O' packets for console output

To: Tony Breeds <tony@xxxxxxxxxxxxxxxxxx>, Xen-Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RESEND] [PATCH] Use GDB 'O' packets for console output
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 19 Sep 2006 08:27:09 +0100
Delivery-date: Tue, 19 Sep 2006 00:37:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060919051054.GS27551@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbbvQQOQpG7MUewEdu9pgANk04WTA==
Thread-topic: [Xen-devel] [RESEND] [PATCH] Use GDB 'O' packets for console output
User-agent: Microsoft-Entourage/
Sharing a single serial line between console and gdbstub isn't a mode we
particularly considered. Without something like this patch, I suppose
ordinary console output and gdb packets get mixed together on the line and
confuse the gdb session? Does gdb actually print out the console data with
your patch?

It's not nice to tell core serial code about the debugger. The switch
between raw output and output-via-gdbstub should be entirely in console.c.

 -- Keir

On 19/9/06 6:10 am, "Tony Breeds" <tony@xxxxxxxxxxxxxxxxxx> wrote:

> The remote serial protocol for GDB supports echoing program
> output.  This patch adds a new SERHND flag and hooks into serial_puts()
> to allow this to happen.  All XEN prtintk()s and dom0 console output
> will get sent to a remote GDB if it's attached and the serial console
> shares the same port.

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>