#include "target.h"
#include "vec.h"
+#include "gdb_vecs.h"
struct target_ops;
struct bfd;
struct address_space;
struct program_space_data;
+typedef struct so_list *so_list_ptr;
+DEF_VEC_P (so_list_ptr);
+
/* A program space represents a symbolic view of an address space.
Roughly speaking, it holds all the data associated with a
non-running-yet program (main executable, main symbols), and when
/* Number of calls to solib_add. */
unsigned solib_add_generation;
+ /* When an solib is added, it is also added to this vector. This
+ is so we can properly report solib changes to the user. */
+ VEC (so_list_ptr) *added_solibs;
+
+ /* When an solib is removed, its name is added to this vector.
+ This is so we can properly report solib changes to the user. */
+ VEC (char_ptr) *deleted_solibs;
+
/* Per pspace data-pointers required by other GDB modules. */
void **data;
unsigned num_data;
anymore. */
extern void prune_program_spaces (void);
+/* Reset saved solib data at the start of an solib event. This lets
+ us properly collect the data when calling solib_add, so it can then
+ later be printed. */
+extern void clear_program_space_solib_cache (struct program_space *);
+
/* Keep a registry of per-pspace data-pointers required by other GDB
modules. */