Files
binutils-gdb/gdb/testsuite/gdb.base
Simon Marchi 3cb6bc13e3 gdb/progspace: add solib_ops pointer in program_space
The subsequent C++ification patch in this series will allocate one
instance of solib_ops per program space.  That instance will be held in
struct program_space.  As a small step towards this, add an `solib_ops
*` field to `struct program_space`.  This field represents the solib_ops
currently used to manage the solibs in that program space.  Initialize
it with the result of `gdbarch_so_ops` in `post_create_inferior`, and
use it whenever we need to do some solib stuff, rather than using
`gdbarch_so_ops` directly.

The difficulty here is knowing when exactly to set and unset the solib
ops.  What I have here passes the testsuite on Linux, but with more
testing we will probably discover more spots where it's needed.

The C++ification patch will turn this field into a unique pointer.

With this patch, the message we get when running "info
linker-namespaces" becomes always the same, so update the test in
gdb.base/dlmopen-ns-ids.exp.

Change-Id: Ide8ddc57328895720fcd645d46dc34491f84c656
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
2025-06-26 14:08:31 -04:00
..
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-28 16:29:50 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-03-28 08:15:52 -07:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-14 11:42:54 +02:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00
2025-04-24 09:54:43 -07:00
2025-04-08 10:54:39 -06:00
2025-04-08 10:54:39 -06:00