* linux-nat.c (linux_nat_thread_address_space): New.
(linux_nat_add_target): Install it. * progspace.c (address_space_num): New. * progspace.h (address_space_num): Declare. * target.c (target_thread_address_space): Really query the target. * target.h (struct target_ops) <to_thread_address_space>: New field.
This commit is contained in:
parent
dbde1c1272
commit
c069425482
6 changed files with 77 additions and 2 deletions
|
@ -89,6 +89,12 @@ free_address_space (struct address_space *aspace)
|
|||
xfree (aspace);
|
||||
}
|
||||
|
||||
int
|
||||
address_space_num (struct address_space *aspace)
|
||||
{
|
||||
return aspace->num;
|
||||
}
|
||||
|
||||
/* Start counting over from scratch. */
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue