From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Compiling kvm / qemu with debugging symbols Date: Tue, 24 Apr 2007 11:30:21 +0300 Message-ID: <462DC01D.3050900@qumranet.com> References: <1b5a37350704230638x23660dfex8e333215b6baa171@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Ed Schofield Return-path: In-reply-to: <1b5a37350704230638x23660dfex8e333215b6baa171-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Ed Schofield wrote: > Hi everyone, > > I'd like to compile kvm with debugging symbols so I can post a > backtrace for a segfault I'm seeing in kvm-20. I've tried hacking the > Makefiles to add -g and -DDEBUG in various places, but it seems like > there has to be a better way to do it. What's the recommended way of > doing this? > > There's a ./configure --extra-cflags option which can be used for it. Maybe upstream qemu will accept an explicit ./configure option for debugging. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/