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: Sat, 7 Aug 2021 00:11:47 +0900

> > 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'.
> >
Just for others' reference,
The --tty method doesn't get input from the tty in the login prompt in my case.
So I switched to method (b) and it works perfect. 
(with "set style enabled off" to remove the annoying syntax color in the source 
window)
Thanks!
Chan Kim







reply via email to

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