Re: [lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-07-28 Thread Michał Górny via lldb-dev
On Mon, 2021-04-19 at 09:59 +0200, Michał Górny wrote: > I'm considering running some effort to improve protocol-level > compatibility between LLDB and GDB. I'd like to hear if there's > interest in such patches being accepted into LLDB. > > My goal would be to make it possible to use LLDB to con

Re: [lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-04-27 Thread Jason Molenda via lldb-dev
> On Apr 27, 2021, at 4:56 AM, Pavel Labath wrote: > > I think that's fine, though possible changing the servers to just ignore the > length fields, like you did above, might be even better, as then they will > work fine regardless of which client they are talking to. They still should > adv

Re: [lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-04-27 Thread Pavel Labath via lldb-dev
On 25/04/2021 22:26, Jason Molenda wrote: I was looking at lldb-platform and I noticed I implemented the A packet in it, and I was worried I might have the same radix error as lldb in there, but this code I wrote made me laugh: const char *p = pkt.c_str() + 1; // skip the 'A' std::

Re: [lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-04-25 Thread Jason Molenda via lldb-dev
I was looking at lldb-platform and I noticed I implemented the A packet in it, and I was worried I might have the same radix error as lldb in there, but this code I wrote made me laugh: const char *p = pkt.c_str() + 1; // skip the 'A' std::vector packet_contents = get_fields_from_delim

Re: [lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-04-22 Thread Jason Molenda via lldb-dev
> On Apr 20, 2021, at 11:39 PM, Pavel Labath via lldb-dev > wrote: > > I am very happy to see this effort and I fully encourage it. Completely agree. Thanks for Cc:'ing me Pavel, I hadn't seen Michał's thread. > > On 20/04/2021 09:13, Michał Górny via lldb-dev wrote: >> On Mon, 2021-04-1

Re: [lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-04-20 Thread Pavel Labath via lldb-dev
I am very happy to see this effort and I fully encourage it. On 20/04/2021 09:13, Michał Górny via lldb-dev wrote: On Mon, 2021-04-19 at 16:29 -0700, Greg Clayton wrote: I think the first blocker towards this project are existing implementation bugs in LLDB. For example, the vFile implementatio

Re: [lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-04-20 Thread Michał Górny via lldb-dev
On Mon, 2021-04-19 at 16:29 -0700, Greg Clayton wrote: > > I think the first blocker towards this project are existing > > implementation bugs in LLDB. For example, the vFile implementation is > > documented as using incorrect data encoding and open flags. This is not > > something that can be triv

Re: [lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-04-19 Thread Greg Clayton via lldb-dev
> On Apr 19, 2021, at 12:59 AM, Michał Górny via lldb-dev > wrote: > > Hi, everyone. > > I'm considering running some effort to improve protocol-level > compatibility between LLDB and GDB. I'd like to hear if there's > interest in such patches being accepted into LLDB. Yes! > > My goal wo

[lldb-dev] [RFC] Improving protocol-level compatibility between LLDB and GDB

2021-04-19 Thread Michał Górny via lldb-dev
Hi, everyone. I'm considering running some effort to improve protocol-level compatibility between LLDB and GDB. I'd like to hear if there's interest in such patches being accepted into LLDB. My goal would be to make it possible to use LLDB to connect to gdbserver (and other servers implementing