WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Keep running Xen when quit gdb

To: <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Keep running Xen when quit gdb
From: Caz Yokoyama <cazyokoyama@xxxxxxxxx>
Date: Wed, 7 Oct 2009 14:25:58 -0700
Cc:
Delivery-date: Wed, 07 Oct 2009 14:26:14 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:x-mailer:thread-index :x-mimeole; bh=xey3GwWHmYxBokLqh/axPWNf7qDS4+5fdLIKovQqaa0=; b=PC5fht6px+r0LynXCmByRopeFD3/1SPNvnsSHARZrSSAfm2P42U/SnjFWA0UMgcb+r dEqcKck+5/NrYUOYLrn7JJiGixq2TbVKKqMaVoclScwe7IEj8ENxnauw9yPRowgql7E4 Tb3UDm/pGn++bj5tT93ibvc/OPEKXn/2rB2yc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:x-mimeole; b=sg9LCs+uI//3WcF9cke1GsGLiQr4ZEgZc/9ry6AWW1FbDopMySG9R3OuT080SK71Rk bxzhZvATdXAZrTBniWau8DeLe6CRyWFZ9Y9MHYE5WCi63k5AggqxHQrcYu1gBE6w2/YU 3P5FWj2OCo+SH0/oQ65R4pBPv7Gxg1nkRKqOI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpHlMJ4eroEHWmHQO2acx6yM3b4UA==

Hello,

This patch keeps running Xen when you quit from gdb. When you debug Xen and dom0 by gdb in host-target configuration, you can interrupt Xen by ^A^A^A%, then you can examine/set breakpoint/etc Xen by gdb. By this patch, you can also interrupt Xen on “target remote” command. In near future, gdb is going to integrate my patch, http://sourceware.org/ml/gdb-patches/2009-10/msg00038.html and have a new command, “set/show remote interrupt-on-connect”. When interrupt-on-connect is ON, gdb sends Ctrl-C to target on “target remote” command. As you see in the screen shots in http://www.caztech.com/xen/ScreenShot-20091007/, you can continue running Xen by both of continue command and quit gdb. In the screen shots, I use ssplitd to split the console messages and gdb interaction.

Patched gdb-7.0 is available in

http://kgdb-light.svn.sourceforge.net/viewvc/kgdb-light/branches/gdb-7.0-interrupt_sequence/

Corresponding .gdbinit is

set prompt (xgdb)

add-symbol-file ../JeremyDom0/vmlinux 0

set remote interrupt-sequence Ctrl-C

set remote interrupt-on-connect on

set remotebaud 115200

target remote 127.0.0.1:4000

 

Note: you don’t need to set interrupt-sequence. Ctrl-C is a default.

Corresponding menu.lst is

title xen-3.5-unstable.gz with kernel 2.6.31.1

        root (hd0,0)

        kernel /xen-3.5-unstable.gz console=com1L,vga com1=115200,8n1 gdb=com1H

        module /vmlinuz-2.6.31.1 ro root=/dev/mapper/vg_tragi-lv_root rhgb

        module /initrd-2.6.31.1.img

Let me know if you have any question.

Thank you.

-Caz Yokoyama, caz at caztech dot com. 503-804-1028(m).

 

Attachment: QuitKeepRunning.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Keep running Xen when quit gdb, Caz Yokoyama <=