aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-exp.y
diff options
context:
space:
mode:
authorPaul N. Hilfinger <hilfinger@adacore.com>2006-01-02 10:38:03 +0000
committerPaul N. Hilfinger <hilfinger@adacore.com>2006-01-02 10:38:03 +0000
commitf98ce7c2e5b520a717ff796f96dae0bb9cac7049 (patch)
tree5d7db5a69a64ec03e05cf28a7f8dd9b112e9cf5f /gdb/ada-exp.y
parent860701dc699888cd2d4a1f130c64c7638447800a (diff)
downloadgdb-f98ce7c2e5b520a717ff796f96dae0bb9cac7049.zip
gdb-f98ce7c2e5b520a717ff796f96dae0bb9cac7049.tar.gz
gdb-f98ce7c2e5b520a717ff796f96dae0bb9cac7049.tar.bz2
* ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
Change several uses of "illegal" to "invalid".
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r--gdb/ada-exp.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index c22083e..9e8abaf 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -252,7 +252,7 @@ primary : primary '(' arglist ')'
if ($1 != NULL)
{
if ($3 != 1)
- error ("Illegal conversion");
+ error ("Invalid conversion");
write_exp_elt_opcode (UNOP_CAST);
write_exp_elt_type ($1);
write_exp_elt_opcode (UNOP_CAST);
@@ -507,7 +507,7 @@ xor_exp : relation XOR relation
;
/* Primaries can denote types (OP_TYPE). In cases such as
- primary TICK_ADDRESS, where a type would be illegal, it will be
+ primary TICK_ADDRESS, where a type would be invalid, it will be
caught when evaluate_subexp in ada-lang.c tries to evaluate the
primary, expecting a value. Precedence rules resolve the ambiguity
in NAME TICK_ACCESS in favor of shifting to form a var_or_type. A
@@ -1238,7 +1238,7 @@ write_var_or_type (struct block *block, struct stoken name0)
else if (tail_index == name_len)
return type;
else
- error ("Illegal attempt to select from type: \"%s\".", name0.ptr);
+ error ("Invalid attempt to select from type: \"%s\".", name0.ptr);
}
else if (tail_index == name_len && nsyms == 0)
{
@@ -1327,7 +1327,7 @@ write_name_assoc (struct stoken name)
}
else
if (write_var_or_type (NULL, name) != NULL)
- error ("Illegal use of type.");
+ error ("Invalid use of type.");
}
/* Convert the character literal whose ASCII value would be VAL to the