[lldb-dev] gdb-remote incompatibility with gdbserver?

David Manouchehri via lldb-dev lldb-dev at lists.llvm.org
Wed Dec 6 09:55:16 PST 2017


Does ds2 have the same behavior? Took a glance and didn't see it.

On Dec 6, 2017 7:47 AM, "Pavel Labath" <labath at google.com> wrote:

> On 6 December 2017 at 12:40, Pedro Alves via lldb-dev
> <lldb-dev at lists.llvm.org> wrote:
> > On 12/05/2017 11:17 PM, David Manouchehri wrote:
> >> Is there a user accessible setting to force on XML target descriptions
> >> in new-gdbsever?
> >
> > In gdbserver?  Nope.
> >
> > There's a setting in GDB to force it to not fetch descriptions,
> > which I found out today didn't actually work.  Fixed now in master [1].
> > GDB works fine against gdbserver with XML force-disabled, so
> >
> > I suspect something else is going on.
> >
> > Maybe a disagreement about who adjusts the PC after a breakpoint trap
> > between lldb and gdbserver?  (given the spurious SIGTRAPs and SIGSEGVs)
> > gdb and gdbserver negotiate that via  qSupported.  If both agree on
> > the "swbreak+" feature, then gdbserver handles it (and reports a "T05
> swbreak"
> > for int3 traps).  Otherwise gdbserver assumes that the client (gdb/lldb)
> will,
> > so doesn't do it itself.  I did a quick grep on a lldb checkout I had
> > around here and didn't find any "swbreak" hit, but maybe lldb assumes
> > the server does it?
> >
>
> I think that could be (a part of) the problem. lldb-server always
> adjusts the PC (see NativeProcessLinux::FixupBreakpointPCsAsNeeded). I
> am unsure whether there is any additional fixup logic in the client.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20171206/3ebb58ef/attachment.html>


More information about the lldb-dev mailing list