aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-10-20 11:09:01 +0000
committerPedro Alves <palves@redhat.com>2009-10-20 11:09:01 +0000
commitc069425482903a72eadc818c9c3c685df6170238 (patch)
tree7a275c1bb27f5ec91032741c0e0e157255a0a9c4 /gdb/progspace.h
parentdbde1c12721304ec89ee0326187ecedebd9da4ed (diff)
downloadgdb-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/progspace.h')
-rw-r--r--gdb/progspace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/progspace.h b/gdb/progspace.h
index 2a0d1d2..0cf1382 100644
--- a/gdb/progspace.h
+++ b/gdb/progspace.h
@@ -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