public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Split new_objfile observable
@ 2023-10-04  2:20 Simon Marchi
  2023-10-04  2:20 ` [PATCH 1/8] gdb: add program_space parameter to ada_clear_symbol_cache Simon Marchi
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Simon Marchi @ 2023-10-04  2:20 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

The goal of this series is to split the new_objfile observable in two.
It currently serves two purposes:

 - if called with a non-nullptr objfile, it means a new objfile was
   added to the current program space
 - if called with a nullptr objfile, it means all objfiles were removed
   from the current program space

Introduce a new "all_objfiles_removed" observable for the second
purpose.

Simon Marchi (8):
  gdb: add program_space parameter to ada_clear_symbol_cache
  gdb: add program_space parameters to some functions in symtab.c
  gdb: add program_space parameter to emit_clear_objfiles_event
  gdb: use objfile->pspace in auto-load.c
  gdb: add program_space parameters to some auto-load functions
  gdb: add all_objfiles_removed observer
  gdb: remove unnecessary nullptr check in free_objfile observers
  gdb: use objfile->pspace in free_objfile observers

 gdb/ada-lang.c                  | 10 +++---
 gdb/ada-tasks.c                 | 41 +++++++++++-------------
 gdb/agent.c                     |  2 +-
 gdb/aix-thread.c                |  7 ++---
 gdb/arm-tdep.c                  |  2 +-
 gdb/auto-load.c                 | 56 +++++++++++----------------------
 gdb/auto-load.h                 |  5 +--
 gdb/auxv.c                      | 13 ++++----
 gdb/breakpoint.c                |  3 --
 gdb/guile/scm-auto-load.c       |  3 +-
 gdb/linux-thread-db.c           |  5 ++-
 gdb/observable.c                |  1 +
 gdb/observable.h                |  7 +++--
 gdb/printcmd.c                  |  7 +----
 gdb/python/py-auto-load.c       |  3 +-
 gdb/python/py-event.h           |  2 +-
 gdb/python/py-inferior.c        | 30 ++++++++++--------
 gdb/python/py-newobjfileevent.c |  8 ++---
 gdb/remote.c                    | 18 ++++++++---
 gdb/sol-thread.c                |  3 +-
 gdb/solib.c                     |  2 +-
 gdb/symfile.c                   |  5 ++-
 gdb/symtab.c                    | 56 +++++++++++++++++++--------------
 gdb/tui/tui-hooks.c             | 13 ++++++--
 24 files changed, 153 insertions(+), 149 deletions(-)


base-commit: 1181bcd0d2572aee2c0947040e56bc1f9af634e3
-- 
2.42.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-10-05 17:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-04  2:20 [PATCH 0/8] Split new_objfile observable Simon Marchi
2023-10-04  2:20 ` [PATCH 1/8] gdb: add program_space parameter to ada_clear_symbol_cache Simon Marchi
2023-10-04  2:20 ` [PATCH 2/8] gdb: add program_space parameters to some functions in symtab.c Simon Marchi
2023-10-04  2:20 ` [PATCH 3/8] gdb: add program_space parameter to emit_clear_objfiles_event Simon Marchi
2023-10-04  2:20 ` [PATCH 4/8] gdb: use objfile->pspace in auto-load.c Simon Marchi
2023-10-04  2:20 ` [PATCH 5/8] gdb: add program_space parameters to some auto-load functions Simon Marchi
2023-10-04  2:20 ` [PATCH 6/8] gdb: add all_objfiles_removed observer Simon Marchi
2023-10-05 16:35   ` Tom Tromey
2023-10-05 17:13     ` Simon Marchi
2023-10-04  2:20 ` [PATCH 7/8] gdb: remove unnecessary nullptr check in free_objfile observers Simon Marchi
2023-10-04  2:20 ` [PATCH 8/8] gdb: use objfile->pspace " Simon Marchi
2023-10-05 16:36 ` [PATCH 0/8] Split new_objfile observable Tom Tromey
2023-10-05 17:23   ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).