Thanks for the reply. Now it becomes much clearer.
Regards,
Dmitrii.
On Sat, 10 Jul 2021 at 08:22, Dmitrii Bundin wrote:
>
> On Thu, Jul 8, 2021 at 12:13 PM Peter Maydell
> wrote:
> > The more usual way to connect to the QEMU gdbstub is to
> > have it listen on a TCP port and connect gdb to that. You can
> > do that by passing QEMU "-s -S" (and no -gdb option),
On Thu, Jul 8, 2021 at 12:13 PM Peter Maydell wrote:
> The more usual way to connect to the QEMU gdbstub is to
> have it listen on a TCP port and connect gdb to that. You can
> do that by passing QEMU "-s -S" (and no -gdb option), which will
> make it pause on startup and use the default TCP port
On Thu, 8 Jul 2021 at 07:12, Dmitrii Bundin wrote:
>
> Hello,
>
> My current installation is Ubuntu 20.04 and QEMU emulator version 6.0.0. I'm
> trying to attach gdb to the guest via a serial port. Using a default
> /dev/ttyS0 I tried to run QEMU as follows
>
> $ sudo qemu-system-x86_64 -serial
Hello,
My current installation is Ubuntu 20.04 and QEMU emulator version 6.0.0.
I'm trying to attach gdb to the guest via a serial port. Using a default
/dev/ttyS0 I tried to run QEMU as follows
$ sudo qemu-system-x86_64 -serial /dev/ttyS0 -gdb /dev/ttyS0 -S
So when attaching from gdb I got