Specialize value_cast error message for Ada
In Ada, the term for a cast is "type conversion". AdaCore has been carrying a local patch to specialize the error message in value_cast, but it seemed fine to me for this to be part of gdb. This also removes a dead "return" statement. gdb/ChangeLog 2019-07-10 Tom Tromey <tromey@adacore.com> * valops.c (value_cast): Specialize error message for Ada.
This commit is contained in:
parent
43dd762689
commit
32372d80ca
2 changed files with 6 additions and 1 deletions
|
@ -555,8 +555,9 @@ value_cast (struct type *type, struct value *arg2)
|
|||
return value_at_lazy (to_type, value_address (arg2));
|
||||
else
|
||||
{
|
||||
if (current_language->la_language == language_ada)
|
||||
error (_("Invalid type conversion."));
|
||||
error (_("Invalid cast."));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue