aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-09-16 19:08:50 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-09-16 19:08:50 +0000
commitdccd3cbdabe18b21f6085fcf60323cbc466d1161 (patch)
tree301c4e00e03d45ae0cf9636220e6d2e279834f5a
parenteecd4c56b40936626187e805494e7c168e7cc748 (diff)
downloadbinutils-dccd3cbdabe18b21f6085fcf60323cbc466d1161.zip
binutils-dccd3cbdabe18b21f6085fcf60323cbc466d1161.tar.gz
binutils-dccd3cbdabe18b21f6085fcf60323cbc466d1161.tar.bz2
[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.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/ada-tasks.c8
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";