Hey Jason, Sorry, I think I ended up accidentally dropping the verification in the final version ( https://github.com/llvm/llvm-project/blob/b1b70f6761266c3eecaf8bd71529eaf51994207b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp#L307). I had implemented GDBRemoteCommunicationClient::GetgPacketSupported previously, though (https://reviews.llvm.org/D62931?id=226779). So maybe we could just hook that up again? I.e., read_all_registers_at_once = !pSupported || (gdb_process->m_use_g_packet_for_reading && gSupported).
Thanks! On Fri, Nov 8, 2019 at 7:15 PM Jason Molenda <jmole...@apple.com> wrote: > A heads-up - lldb is failing to detect the case where the remote gdb RSP > stub does not support the 'g' packet. I found this while doing some bare > board debugging; g fails and doesn't fall back to fetching register values > individually. > > I wrote a test TestNoGPacketSupported.py to show this behavior - it's > currently marked as @expectedFailureAll. If I add the > plugin.process.gdb-remote.use-g-packet-for-reading = false setting, the > test case passes, but of course we can't require people to use that. lldb > has to be adaptive to the packets that the remote stub supports. > > > I'll try to look at the updating the changes to work correctly in this > environment, but I wanted to raise the issue more widely in case anyone has > a chance before me. > > > J > > > > On Oct 30, 2019, at 9:30 AM, Guilherme Andrade via Phabricator < > revi...@reviews.llvm.org> wrote: > > > > guiandrade added a comment. > > > > In D62931#1726865 <https://reviews.llvm.org/D62931#1726865>, @labath > wrote: > > > >> This looks fine to me. Thanks for your patience. Do you still need > someone to commit this for you? > > > > > > Np. Yes, I do. Could you please do it for me? > > > > Thanks! > > > > > > Repository: > > rG LLVM Github Monorepo > > > > CHANGES SINCE LAST ACTION > > https://reviews.llvm.org/D62931/new/ > > > > https://reviews.llvm.org/D62931 > > > > > > > > --
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits