From: Joel Brobecker Date: Fri, 16 Sep 2011 19:08:50 +0000 (+0000) Subject: [Ada] Rename struct tcb_fieldnos into atcb_fieldnos. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dccd3cbdabe18b21f6085fcf60323cbc466d1161;p=binutils-gdb.git [Ada] Rename struct tcb_fieldnos into atcb_fieldnos. `atcb' is clearer than `tcb', as it stands for Ada Task Control Block. This is also consistent with the rest of the code, which uses atcb... gdb/ChangeLog: * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a881b4737f9..62a59b9c5fa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-09-16 Joel Brobecker + + * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos. + 2011-09-16 Tristan Gingold * fork-child.c (fork_inferior): Update comment. Use alloca diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index 71fc25e644c..e49cf6977ad 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -106,7 +106,7 @@ static const char *long_task_states[] = { /* The index of certain important fields in the Ada Task Control Block record and sub-records. */ -struct tcb_fieldnos +struct atcb_fieldnos { /* Fields in record Ada_Task_Control_Block. */ int common; @@ -132,7 +132,7 @@ struct tcb_fieldnos }; /* The type description for the ATCB record and subrecords, and - the associated tcb_fieldnos. For efficiency reasons, these are made + the associated atcb_fieldnos. For efficiency reasons, these are made static globals so that we can compute them only once the first time and reuse them later. Set to NULL if the types haven't been computed yet, or if they may be obsolete (for instance after having loaded @@ -142,7 +142,7 @@ static struct type *atcb_type = NULL; static struct type *atcb_common_type = NULL; static struct type *atcb_ll_type = NULL; static struct type *atcb_call_type = NULL; -static struct tcb_fieldnos atcb_fieldno; +static struct atcb_fieldnos atcb_fieldno; /* Set to 1 when the cached address of System.Tasking.Debug.Known_Tasks might be stale and so needs to be recomputed. */ @@ -322,7 +322,7 @@ get_tcb_types_info (void) struct type *common_type; struct type *ll_type; struct type *call_type; - struct tcb_fieldnos fieldnos; + struct atcb_fieldnos fieldnos; const char *atcb_name = "system__tasking__ada_task_control_block___XVE"; const char *atcb_name_fixed = "system__tasking__ada_task_control_block";