diff options
author | Yao Qi <yao@codesourcery.com> | 2013-10-21 16:31:17 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-11-20 12:41:25 +0800 |
commit | 3a8356ffac809056cb3650c50a00f4adb30cc147 (patch) | |
tree | 4cb0dadc6a7b290ee358e2cdb18c5bbf90adf69e /gdb/progspace.h | |
parent | b12039c63764299237a899c986be7a557aa62807 (diff) | |
download | gdb-3a8356ffac809056cb3650c50a00f4adb30cc147.zip gdb-3a8356ffac809056cb3650c50a00f4adb30cc147.tar.gz gdb-3a8356ffac809056cb3650c50a00f4adb30cc147.tar.bz2 |
Add REGISTRY for struct address_space.
This patch adds REGISTRY for struct address_space.
gdb:
2013-11-20 Yao Qi <yao@codesourcery.com>
* progspace.c (struct address_space): Update comments.
<REGISTRY_FIELDS>: New fields.
DEFINE_REGISTRY for address_space.
(new_address_space): Call address_space_alloc_data.
(free_address_space): Call address_space_free_data.
* progspace.h: Use DECLARE_REGISTRY.
Diffstat (limited to 'gdb/progspace.h')
-rw-r--r-- | gdb/progspace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/progspace.h b/gdb/progspace.h index f24a569..04ac374 100644 --- a/gdb/progspace.h +++ b/gdb/progspace.h @@ -304,4 +304,9 @@ extern void clear_program_space_solib_cache (struct program_space *); DECLARE_REGISTRY (program_space); +/* Keep a registry of per-aspace data-pointers required by other GDB + modules. */ + +DECLARE_REGISTRY (address_space); + #endif |