Re: [lldb-dev] How to handle "O XX..." reply packets from gdb servers like openocd

2018-01-08 Thread Greg Clayton via lldb-dev
Then the right way to fix this is to somehow allow the rCmd to watch for the "O" packets in its responses. Since no other commands want this and the send continue packets use a special send packet and receive response, we might must want a SendPacketAndReceiveResponseWithOutputSupport(...) that

Re: [lldb-dev] How to handle "O XX..." reply packets from gdb servers like openocd

2018-01-04 Thread Pedro Alves via lldb-dev
On 01/03/2018 07:11 PM, Greg Clayton via lldb-dev wrote: > >> On Jan 1, 2018, at 6:30 PM, Owen Shaw via lldb-dev >> wrote: >> >> I dug into this a bit more, and these output reply packets seem to be >> handled already, but only if the program is running. > >> Since the relevant openocd commands

Re: [lldb-dev] How to handle "O XX..." reply packets from gdb servers like openocd

2018-01-03 Thread Owen Shaw via lldb-dev
Hi Greg, I've been assuming that we can't force a change to openocd's behavior, or at least that the easier path is to handle its current behavior. I don't know why openocd sends O packets in response to an rCmd, but it does and gdb is okay with it. I'm still learning my way around the lldb code

Re: [lldb-dev] How to handle "O XX..." reply packets from gdb servers like openocd

2018-01-03 Thread Greg Clayton via lldb-dev
> On Jan 1, 2018, at 6:30 PM, Owen Shaw via lldb-dev > wrote: > > I dug into this a bit more, and these output reply packets seem to be > handled already, but only if the program is running. > Since the relevant openocd commands are often issued when the program > paused, the reply packets are

Re: [lldb-dev] How to handle "O XX..." reply packets from gdb servers like openocd

2018-01-01 Thread Owen Shaw via lldb-dev
I dug into this a bit more, and these output reply packets seem to be handled already, but only if the program is running. Since the relevant openocd commands are often issued when the program paused, the reply packets aren't processed as expected. The spec does say that reply packets can happen

[lldb-dev] How to handle "O XX..." reply packets from gdb servers like openocd

2017-12-29 Thread Owen Shaw via lldb-dev
Looking for guidance. This seems like an lldb issue, but maybe I'm missing something. And while I have a potential solution, I'm not familiar enough with lldb code to know if its a "good" solution. Background -- openocd sends mutliple "O XX..." reply packets (https://sourceware.org/gdb/