* 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
|
@ -585,6 +585,13 @@ struct target_ops
|
|||
The default implementation always returns target_gdbarch. */
|
||||
struct gdbarch *(*to_thread_architecture) (struct target_ops *, ptid_t);
|
||||
|
||||
/* Determine current address space of thread PTID.
|
||||
|
||||
The default implementation always returns the inferior's
|
||||
address space. */
|
||||
struct address_space *(*to_thread_address_space) (struct target_ops *,
|
||||
ptid_t);
|
||||
|
||||
int to_magic;
|
||||
/* Need sub-structure for target machine related rather than comm related?
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue