* 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:
Pedro Alves
2009-10-20 11:09:01 +00:00
parent dbde1c1272
commit c069425482
6 changed files with 77 additions and 2 deletions

View File

@@ -254,6 +254,9 @@ extern struct address_space *new_address_space (void);
share an address space. */
extern struct address_space *maybe_new_address_space (void);
/* Returns the integer address space id of ASPACE. */
extern int address_space_num (struct address_space *aspace);
/* Update all program spaces matching to address spaces. The user may
have created several program spaces, and loaded executables into
them before connecting to the target interface that will create the