diff options
author | Pedro Alves <palves@redhat.com> | 2009-10-20 11:09:01 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-10-20 11:09:01 +0000 |
commit | c069425482903a72eadc818c9c3c685df6170238 (patch) | |
tree | 7a275c1bb27f5ec91032741c0e0e157255a0a9c4 /gdb/target.h | |
parent | dbde1c12721304ec89ee0326187ecedebd9da4ed (diff) | |
download | gdb-c069425482903a72eadc818c9c3c685df6170238.zip gdb-c069425482903a72eadc818c9c3c685df6170238.tar.gz gdb-c069425482903a72eadc818c9c3c685df6170238.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 3d5a348..e4421e9 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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? */ |