From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: Help debugging domain builder, qemu upstream and hvmloader Date: Wed, 27 Jul 2011 18:11:19 +0800 Message-ID: <1311761479.1800.6.camel@limbo> References: <1311752652.1800.3.camel@limbo> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Castro Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Adding @xen-devel back in CC list. On Wed, 2011-07-27 at 18:53 +0900, Daniel Castro wrote: > > Ian Campbell once mentioned his trick to debug QEMU (following > > paragraphs quoted from his email): > > > > ===================================================================== > > When I have an issue with qemu I often specify the device model in my > > guest configuration as a script containing: > > echo $@ > /tmp/qemu-dm > > sleep 1h > > > > Then immediately after running "xl create" I can examine /tmp/qemu-dm > > and run the qemu by hand in the foreground, or under gdb etc. (there is > > a timeout in xl waiting for qemu to announce itself so you need to be > > reasonably prompt...) > > ===================================================================== > > Works perfectly, now I need to learn how to use gdb. Any good document > comes to mind? > Google helps a lot. GDB manual is the best document I know. Wei.