RE: [RFC PATCH v2] gdbstub: only send stop-reply packets when allowed to

2022-09-20 Thread Matheus Bernardino (QUIC)
> Alex Bennée wrote: > > Matheus Tavares Bernardino writes: > > > > > Although this behavior doesn't seem to cause problems with GDB itself, > > it does with other debuggers that implement the GDB remote serial > > protocol, like hexagon-lldb. In this case, the debugger fails upon an > > unexpe

Re: [RFC PATCH v2] gdbstub: only send stop-reply packets when allowed to

2022-09-16 Thread Alex Bennée
Brian Cain writes: >> -Original Message- >> From: Qemu-devel >> On Behalf Of Matheus Tavares Bernardino > ... >> On Wed, 24 Aug 2022 at 14:51, Matheus Tavares Bernardino >> wrote: >> > >> > Instead, let's change gdb_set_stop_cpu() to send stop messages only as a >> > response to a pre

Re: [RFC PATCH v2] gdbstub: only send stop-reply packets when allowed to

2022-09-16 Thread Alex Bennée
Matheus Tavares Bernardino writes: > GDB's remote serial protocol allows stop-reply messages to be sent by > the stub either as a notification packet or as a reply to a GDB command > (provided that the cmd accepts such a response). QEMU currently does not > implement notification packets, so it

RE: [RFC PATCH v2] gdbstub: only send stop-reply packets when allowed to

2022-09-15 Thread Brian Cain
> -Original Message- > From: Qemu-devel > On Behalf Of Matheus Tavares Bernardino ... > On Wed, 24 Aug 2022 at 14:51, Matheus Tavares Bernardino > wrote: > > > > Instead, let's change gdb_set_stop_cpu() to send stop messages only as a > > response to a previous GDB command, also making su

Re: [RFC PATCH v2] gdbstub: only send stop-reply packets when allowed to

2022-08-31 Thread Matheus Tavares Bernardino
On Wed, 24 Aug 2022 at 14:51, Matheus Tavares Bernardino wrote: > > Instead, let's change gdb_set_stop_cpu() to send stop messages only as a > response to a previous GDB command, also making sure to check that the > command accepts such a reply. > > Signed-off-by: Matheus Tavares Bernardino > -

[RFC PATCH v2] gdbstub: only send stop-reply packets when allowed to

2022-08-24 Thread Matheus Tavares Bernardino
GDB's remote serial protocol allows stop-reply messages to be sent by the stub either as a notification packet or as a reply to a GDB command (provided that the cmd accepts such a response). QEMU currently does not implement notification packets, so it should only send stop-replies synchronously an