[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: <Xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.