qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: ckim
Subject: RE: how to debug/analyze qemu code while running OS on the virtual machine?
Date: Fri, 6 Aug 2021 23:47:49 +0900

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 <peter.maydell@linaro.org>
> Sent: Friday, August 6, 2021 7:02 PM
> To: Chan Kim <ckim@etri.re.kr>
> Cc: qemu-discuss <qemu-discuss@nongnu.org>
> Subject: Re: how to debug/analyze qemu code while running OS on the
> virtual machine?
> 
> On Fri, 6 Aug 2021 at 10:16, <ckim@etri.re.kr> 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 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 gdbstub) to run the debuggee
> and attaching gdb to that debuggee or
> (c) running the QEMU process standalone and then running gdb in a second
> terminal to attach to that process using 'gdb path/to/executable pid'.
> 
> None of this is QEMU specific, so you should be able to find some useful
> info out there on the web.
> 
> thanks
> -- PMM







reply via email to

[Prev in Thread] Current Thread [Next in Thread]