aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/progspace.h')
-rw-r--r--gdb/progspace.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/progspace.h b/gdb/progspace.h
index 9822f70..3db3938 100644
--- a/gdb/progspace.h
+++ b/gdb/progspace.h
@@ -23,6 +23,7 @@
#include "target.h"
#include "vec.h"
+#include "gdb_vecs.h"
struct target_ops;
struct bfd;
@@ -32,6 +33,9 @@ struct exec;
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
@@ -188,6 +192,14 @@ struct program_space
/* 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;
@@ -278,6 +290,11 @@ extern void update_address_spaces (void);
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. */