diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-05-16 01:27:02 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-05-16 01:27:02 +0000 |
commit | ad3bbd48b65047845b258564db3fd2e64e00c7bc (patch) | |
tree | 6fa1e4fcc2207b1528a33e4097c13526e75db941 /gdb/progspace.c | |
parent | 5cc80db34dcbe944fe7b480c9841f309c0cf6e96 (diff) | |
download | gdb-ad3bbd48b65047845b258564db3fd2e64e00c7bc.zip gdb-ad3bbd48b65047845b258564db3fd2e64e00c7bc.tar.gz gdb-ad3bbd48b65047845b258564db3fd2e64e00c7bc.tar.bz2 |
2010-05-15 Michael Snyder <msnyder@vmware.com>
* parse.c: White space.
* p-lang.c: White space.
* posix-hdep.c: White space.
* printcmd.c: White space.
* progspace.c: White space.
* prologue-value.c: White space.
* psymtab.c: White space.
* p-typeprint.c: White space.
* p-valprint.c: White space.
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r-- | gdb/progspace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c index 5a2acfd..b1abcf9 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -227,6 +227,7 @@ static void restore_program_space (void *arg) { struct program_space *saved_pspace = arg; + set_current_program_space (saved_pspace); } @@ -239,6 +240,7 @@ save_current_program_space (void) { struct cleanup *old_chain = make_cleanup (restore_program_space, current_program_space); + return old_chain; } @@ -435,6 +437,7 @@ update_address_spaces (void) if (shared_aspace) { struct address_space *aspace = new_address_space (); + free_address_space (current_program_space->aspace); ALL_PSPACES (pspace) pspace->aspace = aspace; |