RE: how to debug/analyze qemu code while running OS on the virtual machine?

2021-08-06 Thread ckim
> > You can also use any of the standard gdb mechanisms for putting a > > commandline debuggee in a different terminal to the gdb, including (a) > > using gdb's --tty argument to say "put the application's terminal i/o > > into this other tty" or > > (b) using gdbserver (the gdb one, not QEMU's

RE: how to debug/analyze qemu code while running OS on the virtual machine?

2021-08-06 Thread ckim
Hell Peter Maydell, I didn't know such methods. I checked I can now happily use the --tty method. Thanks so much. Chan Kim > -Original Message- > From: Peter Maydell > Sent: Friday, August 6, 2021 7:02 PM > To: Chan Kim > Cc: qemu-discuss > Subject: Re: how to debug

Re: how to debug/analyze qemu code while running OS on the virtual machine?

2021-08-06 Thread Peter Maydell
On Fri, 6 Aug 2021 at 10:16, wrote: > > Sorry, I soon found when I run the application on the OS, the breakpoint work > in the debugger and the debugger command and source window comes back. > > I need to occasionally type ctrl-l to see the source code clearly. You can also use any of the

RE: how to debug/analyze qemu code while running OS on the virtual machine?

2021-08-06 Thread ckim
PM To: 'qemu-discuss' Subject: how to debug/analyze qemu code while running OS on the virtual machine? Hello folks, Wish you all a healthy summer in this COVID-19 season. I'm running ubuntu on a virtual machine (arm64 virt machine with an added peripheral). I want to follow qemu code path

how to debug/analyze qemu code while running OS on the virtual machine?

2021-08-06 Thread ckim
Hello folks, Wish you all a healthy summer in this COVID-19 season. I'm running ubuntu on a virtual machine (arm64 virt machine with an added peripheral). I want to follow qemu code path while running an application/driver on the virtual machine. This is the command I tried. Gdb