Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: gdb/progspace.h

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/procfs.c ('k') | gdb/progspace.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/progspace.h
diff --git a/gdb/progspace.h b/gdb/progspace.h
index 9822f70b70bdaf8819fbed8852a7ce8045ba32e9..3db3938aace7b4dd9eafaaec05453550b749a2f4 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. */
« no previous file with comments | « gdb/procfs.c ('k') | gdb/progspace.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698