This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/7] [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.
---
 gdb/ChangeLog   |    4 ++++
 gdb/ada-tasks.c |    8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a881b47..62a59b9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+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>
 
 	* fork-child.c (fork_inferior): Update comment.  Use alloca
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 71fc25e..e49cf69 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";
-- 
1.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]