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