* progspace.c (update_address_spaces): Update inferior address spaces
also.
This commit is contained in:
parent
01637564ba
commit
7e9af34afe
2 changed files with 23 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* progspace.c (update_address_spaces): Update inferior address spaces
|
||||||
|
also.
|
||||||
|
|
||||||
2010-03-02 Doug Evans <dje@google.com>
|
2010-03-02 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
|
* dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
|
||||||
|
|
|
@ -430,24 +430,30 @@ void
|
||||||
update_address_spaces (void)
|
update_address_spaces (void)
|
||||||
{
|
{
|
||||||
int shared_aspace = gdbarch_has_shared_address_space (target_gdbarch);
|
int shared_aspace = gdbarch_has_shared_address_space (target_gdbarch);
|
||||||
struct address_space *aspace = NULL;
|
|
||||||
struct program_space *pspace;
|
struct program_space *pspace;
|
||||||
|
struct inferior *inf;
|
||||||
|
|
||||||
init_address_spaces ();
|
init_address_spaces ();
|
||||||
|
|
||||||
ALL_PSPACES (pspace)
|
|
||||||
{
|
|
||||||
free_address_space (pspace->aspace);
|
|
||||||
|
|
||||||
if (shared_aspace)
|
if (shared_aspace)
|
||||||
{
|
{
|
||||||
if (aspace == NULL)
|
struct address_space *aspace = new_address_space ();
|
||||||
aspace = new_address_space ();
|
free_address_space (current_program_space->aspace);
|
||||||
|
ALL_PSPACES (pspace)
|
||||||
pspace->aspace = aspace;
|
pspace->aspace = aspace;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
ALL_PSPACES (pspace)
|
||||||
|
{
|
||||||
|
free_address_space (pspace->aspace);
|
||||||
pspace->aspace = new_address_space ();
|
pspace->aspace = new_address_space ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (inf = inferior_list; inf; inf = inf->next)
|
||||||
|
if (gdbarch_has_global_solist (target_gdbarch))
|
||||||
|
inf->aspace = maybe_new_address_space ();
|
||||||
|
else
|
||||||
|
inf->aspace = inf->pspace->aspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save the current program space so that it may be restored by a later
|
/* Save the current program space so that it may be restored by a later
|
||||||
|
|
Loading…
Reference in a new issue