Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: gdb-patches@sourceware.org
Subject: Re: [RFA 4/4 take 2] Improved linker-debugger interface
Date: Fri, 28 Sep 2012 10:58:00 -0000	[thread overview]
Message-ID: <20120928105819.GA26150@host2.jankratochvil.net> (raw)
In-Reply-To: <20120928105145.GA3465@redhat.com>

On Fri, 28 Sep 2012 12:51:45 +0200, Gary Benson wrote:
> dlmopen support requires the local cache that incremental updating
> uses, because when you stop to update a namespace's so_list you can
> only see the address of that namespace in the inferior.  The other
> namespace's so_lists are fetched from the cache, so either gdb or
> gdbserver will have to maintain a cache somewhere.  I'm tempted to
> retain the cache in gdb, and have gdbserver send namespace updates.

I believe it is needed to resolve the dlmopen support from core files.
Otherwise this new code may be based on wrong expectations.

If you are not going to implement dlmopen from core files please drop the
dlmopen support.


> I'm trying to understand the existing interface between gdb and
> gdbserver.  Does gdb request a library list and gdbserver send one,

Yes.

> or does gdbserver recognise the stop and send one, and gdb assumes
> it's been sent one and try to read it?

No.

GDB still places the breakpoint (formerly at _dl_debug_state) and when it is
hit gdb->gdbserver sends the request packet: $qXfer:libraries-svr4:read::0,fff#


Thanks,
Jan


      reply	other threads:[~2012-09-28 10:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 11:09 Gary Benson
2012-07-25 19:36 ` Tom Tromey
2012-07-31 12:12   ` Gary Benson
2012-07-31 12:13     ` Gary Benson
2012-08-14 19:49       ` Tom Tromey
2012-08-15 17:24 ` Jan Kratochvil
2012-08-15 17:46   ` Jan Kratochvil
2012-08-16 11:14     ` Gary Benson
2012-08-16 15:52     ` Gary Benson
2012-08-17 10:54       ` Gary Benson
2012-08-17 16:41         ` Jan Kratochvil
2012-09-19  9:49   ` Gary Benson
2012-09-19 11:14     ` Jan Kratochvil
2012-09-19 15:06       ` Gary Benson
2012-09-19 15:13         ` Jan Kratochvil
2012-09-21 12:36           ` Gary Benson
2012-09-21 14:46             ` Jan Kratochvil
2012-09-28 10:51               ` Gary Benson
2012-09-28 10:58                 ` Jan Kratochvil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120928105819.GA26150@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox