aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r--gdb/progspace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 5cf8334..1dbcd58 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -28,6 +28,7 @@
#include "inferior.h"
#include <algorithm>
#include "cli/cli-style.h"
+#include "observable.h"
/* The last program space number assigned. */
static int last_program_space_num = 0;
@@ -98,6 +99,7 @@ program_space::program_space (address_space *aspace_)
aspace (aspace_)
{
program_spaces.push_back (this);
+ gdb::observers::new_program_space.notify (this);
}
/* See progspace.h. */
@@ -106,6 +108,7 @@ program_space::~program_space ()
{
gdb_assert (this != current_program_space);
+ gdb::observers::free_program_space.notify (this);
remove_program_space (this);
scoped_restore_current_program_space restore_pspace;