Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Guinevere Larsen <guinevere@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: Introduce user-friendly namespace identifier for "info shared"
Date: Mon, 17 Mar 2025 13:54:23 -0400	[thread overview]
Message-ID: <b7e0a0e2-0286-4a26-b23c-fb8bc54754d5@simark.ca> (raw)
In-Reply-To: <4fa90990-09d0-450d-9006-f0a296b2dad9@redhat.com>

> The issue here is handling dlclose calls. When svr4 detects a dlclose
> call, it will clear the solib_lists object, and read all the SOs
> again. So if the dlclose call has deactivated a namespace, we don't
> have an easy way to identify which namespaces were deactivated, and
> the way to handle this is to deactivate them all and reactivate them
> in svr4_maybe_add_namespace.
> 
> And we need all the data to reactivate namespaces to be stored in
> svr4_info, because if the target is a gdbserver, we're reading
> everything through svr4_current_sos_via_xfer_libraries, and it doesn't
> sound like a good idea to modify the xml parsing code to pass some
> context that would only be useful for solib-svr4.
> 
> While writing this, I realized I might be able to simplify this,
> having just a set of namespace IDs that are active, which will make
> the synchronization much simpler.

Ok you lost me there :).  I'll see in the next patch version.

Simon

  reply	other threads:[~2025-03-17 18:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-13 17:00 Guinevere Larsen
2025-03-13 19:19 ` Eli Zaretskii
2025-03-13 19:27   ` Guinevere Larsen
2025-03-15  2:51 ` Kevin Buettner
2025-03-15  3:11   ` Kevin Buettner
2025-03-17 11:55     ` Guinevere Larsen
2025-03-17 15:36       ` Simon Marchi
2025-03-18  1:07       ` Kevin Buettner
2025-03-17 15:36 ` Simon Marchi
2025-03-17 17:07   ` Guinevere Larsen
2025-03-17 17:54     ` Simon Marchi [this message]
2025-03-19 12:30 ` [PATCH v2] " Guinevere Larsen
2025-03-21 17:55   ` Guinevere Larsen
2025-03-27 17:13   ` [PATCH v3] " Guinevere Larsen
2025-03-31 19:34     ` Guinevere Larsen
2025-04-05 20:17     ` Kevin Buettner
2025-04-07 13:07       ` Guinevere Larsen

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=b7e0a0e2-0286-4a26-b23c-fb8bc54754d5@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=guinevere@redhat.com \
    /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