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: Peter Maydell
Subject: Re: how to compile qemu code in debug mode?
Date: Tue, 26 Jan 2021 09:49:29 +0000

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]