RE: [gdbstub] redirecting qemu console output to a debugger

2021-10-21 Thread Sid Manning
> -Original Message- > From: Alex Bennée > Sent: Thursday, October 21, 2021 9:52 AM > To: Philippe Mathieu-Daudé > Cc: Sid Manning ; Marc-André Lureau > ; Paolo Bonzini ; > qemu-devel@nongnu.org > Subject: Re: [gdbstub] redirecting qemu console output to a deb

Re: [gdbstub] redirecting qemu console output to a debugger

2021-10-21 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Hi Sid, > > Cc'ing maintainers: > > $ ./scripts/get_maintainer.pl -f chardev/char.c > "Marc-André Lureau" (maintainer:chardev) > Paolo Bonzini (reviewer:Character device...) > > $ ./scripts/get_maintainer.pl -f gdbstub.c > "Alex Bennée" (maintainer:GDB stub

Re: [gdbstub] redirecting qemu console output to a debugger

2021-10-21 Thread Philippe Mathieu-Daudé
Hi Sid, Cc'ing maintainers: $ ./scripts/get_maintainer.pl -f chardev/char.c "Marc-André Lureau" (maintainer:chardev) Paolo Bonzini (reviewer:Character device...) $ ./scripts/get_maintainer.pl -f gdbstub.c "Alex Bennée" (maintainer:GDB stub) "Philippe Mathieu-Daudé" (reviewer:GDB stub) On

[gdbstub] redirecting qemu console output to a debugger

2021-10-21 Thread Sid Manning
Currently when I attach a debugger (lldb) to my qemu session all of the output goes to the shell running qemu not to the debugger. Fixing this meant that I needed to point the semi-hosting output to the gdb chardev. I started qemu like this: -s -S -semihosting-config target=auto,chardev=ch0 -