src/gdb ChangeLog ada-tasks.c

brobecke@sourceware.org brobecke@sourceware.org
Fri Sep 16 19:09:00 GMT 2011


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2011-09-16 19:09:07

Modified files:
	gdb            : ChangeLog ada-tasks.c 

Log message:
	[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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13341&r2=1.13342
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ada-tasks.c.diff?cvsroot=src&r1=1.40&r2=1.41



More information about the Gdb-cvs mailing list