diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-09-16 19:09:07 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-09-16 19:09:07 +0000 |
commit | 6da9ca05ace2b56540db950aa5281e6ef76f76c3 (patch) | |
tree | 67c018a6143b834f915c35330d767006267318b9 /gdb/ChangeLog | |
parent | dccd3cbdabe18b21f6085fcf60323cbc466d1161 (diff) | |
download | gdb-6da9ca05ace2b56540db950aa5281e6ef76f76c3.zip gdb-6da9ca05ace2b56540db950aa5281e6ef76f76c3.tar.gz gdb-6da9ca05ace2b56540db950aa5281e6ef76f76c3.tar.bz2 |
[Ada] Make the ATCB type info program-space-specific
This module caches the type description of various elements of
the Ada Task Control Block (ATCB). This cache was implemented
as static globals, which is wrong in the case where we have
multiple inferiors. This change cleans things up a bit by moving
some of these static globals to a per-program-space area.
gdb/ChangeLog:
* ada-tasks.c: #include "progspace.h" and "objfiles.h".
(atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
(atcb_fieldno): Delete these static globals.
(struct ada_tasks_pspace_data): New struct.
(ada_tasks_pspace_data_handle): New static global.
(get_ada_tasks_pspace_data): New function.
(ada_tasks_invalidate_pspace_data): New function.
(get_tcb_types_info, ptid_from_atcb_common, read_atcb)
(read_known_tasks_list, ada_new_objfile_observer): Adjust.
(_initialize_tasks): Create this module's per-progspace
data handle.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 62a59b9..05e9505 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,19 @@ 2011-09-16 Joel Brobecker <brobecker@adacore.com> + * ada-tasks.c: #include "progspace.h" and "objfiles.h". + (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type) + (atcb_fieldno): Delete these static globals. + (struct ada_tasks_pspace_data): New struct. + (ada_tasks_pspace_data_handle): New static global. + (get_ada_tasks_pspace_data): New function. + (ada_tasks_invalidate_pspace_data): New function. + (get_tcb_types_info, ptid_from_atcb_common, read_atcb) + (read_known_tasks_list, ada_new_objfile_observer): Adjust. + (_initialize_tasks): Create this module's per-progspace + data handle. + +2011-09-16 Joel Brobecker <brobecker@adacore.com> + * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos. 2011-09-16 Tristan Gingold <gingold@adacore.com> |