Re: Open serial port to attach via GDB

2021-07-12 Thread Dmitrii Bundin
Thanks for the reply. Now it becomes much clearer. Regards, Dmitrii.

Re: Open serial port to attach via GDB

2021-07-10 Thread Peter Maydell
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),

Re: Open serial port to attach via GDB

2021-07-10 Thread Dmitrii Bundin
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

Re: Open serial port to attach via GDB

2021-07-08 Thread Peter Maydell
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

Open serial port to attach via GDB

2021-07-08 Thread Dmitrii Bundin
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