Philippe Mathieu-Daudé <[email protected]> writes: > On 23/9/25 11:09, Markus Armbruster wrote: >> HMP command gdbserver used to emit two error messages for certain >> errors. For instance, with -M none: >> (qemu) gdbserver >> gdbstub: meaningless to attach gdb to a machine without any CPU. >> Could not open gdbserver on device 'tcp::1234' > > Orthogonal to this patch: interesting. This comes from commit > 508b4ecc393 ("gdbstub.c: fix GDB connection segfault caused by empty > machines"). This feels wrong to me, as it is OK to use a jtag probe > to access memory or program a flash, even without any cpu online. > > Yet another side-effect of use of the ill-first_cpu global variable. > > Back to this patch description, probably not the best error example =)
I picked it because how to trigger it was obvious to me. Happy to use another one if you show it to me :) > Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Thanks!
