This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 11/11] New target_ops hook to_can_do_single_step


Pedro Alves <palves@redhat.com> writes:

> But my issue with it is that this breaks gdb/gdbserver compatibility.
>
> Old GDB has:
>
>       /* If s, S, c, and C are not all supported, we can't use vCont.  Clearing
>          BUF will make packet_ok disable the packet.  */
>       if (!support_s || !support_S || !support_c || !support_C)
> 	buf[0] = 0;
>
> Which means that new x86-86 gdbserver with old gdb will just
> stop using vCont after this change.

I think you meant new arm gdbserver, which doesn't return s and S in the
reply, old gdb will stop using vCont.

>
> And old arm gdbserver will still claim support for vCont;s packets,
> which means that new gdb with old gdbserver will be broken.

That is right.  I'll do it in qSupported features.

-- 
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]