how to compile qemu code in debug mode?

2021-01-26 Thread ckim
Hello, 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.. Thank you. Chan Kim

Re: file permission error during make after source change

2021-01-26 Thread Peter Maydell
On Tue, 26 Jan 2021 at 02:48, wrote: > > I found just ‘sudo make’ solves it… That's not ideal. (Probably the 'sudo make install' decided to rebuild some files, which then were owned by root so a non-root 'make' cannot overwrite them.) If you do a 'sudo make distclean' that should get rid of the

Re: qemu hello world prints nothing..

2021-01-26 Thread Peter Maydell
On Tue, 26 Jan 2021 at 07:02, wrote: > I wish someone could help me here. Running a simple program on qemu is not > easy for me. > > I tried to run baremetal hello world program and found this web page. > > (https://balau82.wordpress.com/2010/02/28/hello-world-for-bare-metal-arm-using-qemu/) > >

Re: [EXT] Re: Bugs in SSH module

2021-01-26 Thread Berto Furth
Can you post a text attachment of the complete build log when you do "configure --disable-libssh"? Can you make sure you're doing a "make clean" before recompiling? Thanks! On Tue, 26 Jan 2021, at 19:26, Sawyer Liu wrote: > Hi, > As you said, I disabled libssh(./configure --disable-libssh

Re: how to compile qemu code in debug mode?

2021-01-26 Thread Peter Maydell
On Tue, 26 Jan 2021 at 09:12, 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 he

RE: how to compile qemu code in debug mode?

2021-01-26 Thread ckim
Thanks again, that helped. (so --enable-debug is for qemu itself, and -g for the application.) Chan Kim > -Original Message- > From: Peter Maydell > Sent: Tuesday, January 26, 2021 6:49 PM > To: Chan Kim > Cc: qemu-discuss > Subject: Re: how to compile qemu code in debug mode? > > On T

RE: qemu hello world prints nothing..

2021-01-26 Thread ckim
Hello, Peter Maydell Thank you so much again! I'll try your suggestions. Thanks! Chan Kim > -Original Message- > From: Peter Maydell > Sent: Tuesday, January 26, 2021 6:47 PM > To: Chan Kim > Cc: qemu-discuss > Subject: Re: qemu hello world prints nothing.. > > On Tue, 26 Jan 2021 at 0

RE: file permission error during make after source change

2021-01-26 Thread ckim
Thank you so much, I'll use those methods. Chan Kim > -Original Message- > From: Peter Maydell > Sent: Tuesday, January 26, 2021 6:40 PM > To: Chan Kim > Cc: qemu-discuss > Subject: Re: file permission error during make after source change > > On Tue, 26 Jan 2021 at 02:48, wrote: > >

Re: how to compile qemu code in debug mode?

2021-01-26 Thread Peter Maydell
On Tue, 26 Jan 2021 at 11:22, wrote: > > Thanks again, that helped. > (so --enable-debug is for qemu itself, and -g for the application.) How you enable debug symbols for the guest application is entirely up to that application's build process: it might be "add -g to CFLAGS", it might have a conf

question about qemu user emulation

2021-01-26 Thread الاحترافية Æ
can I compile qemu to make it as fast as exagear qemu user x86_64 because I need 64bit emulator thanks