qemu-discuss
[Top][All Lists]
Advanced

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

RE: how to compile qemu code in debug mode?


From: ckim
Subject: RE: how to compile qemu code in debug mode?
Date: Tue, 26 Jan 2021 20:22:52 +0900

Thanks again, that helped.
(so --enable-debug is for qemu itself, and -g for the application.)
Chan Kim

> -----Original Message-----
> From: Peter Maydell <peter.maydell@linaro.org>
> Sent: Tuesday, January 26, 2021 6:49 PM
> To: Chan Kim <ckim@etri.re.kr>
> Cc: qemu-discuss <qemu-discuss@nongnu.org>
> Subject: Re: how to compile qemu code in debug mode?
> 
> On Tue, 26 Jan 2021 at 09:12, <ckim@etri.re.kr> wrote:
> > How can I compile qeme in debug mode? I configured it with –enable-debug
> but this is to debug the application running on qemu, isn’t it?
> >
> > I want to use debugger to more efficiently analyze qemu code, where
> should I insert the -g -O0 option? Please help..
> 
> Passing configure '--enable-debug' is the correct way to build QEMU itself
> for debugging. This will build QEMU's source files with -g -O0, and also
> enable some extra assertions.
> 
> thanks
> -- PMM







reply via email to

[Prev in Thread] Current Thread [Next in Thread]