Thanks again, that helped. (so --enable-debug is for qemu itself, and -g for the application.) Chan Kim
> -----Original Message----- > From: Peter Maydell <peter.mayd...@linaro.org> > Sent: Tuesday, January 26, 2021 6:49 PM > To: Chan Kim <c...@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, <c...@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