modify error message

This commit is contained in:
Daniel Berlin 2000-07-17 19:41:10 +00:00
parent f7cb7d68c2
commit 7168a814a6
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2000-07-17 Daniel Berlin <dberlin@redhat.com>
* valops.c (value_struct_elt): Change error message
2000-07-17 matthew green <mrg@redhat.com>
* config/sparc/nm-nbsd.h (GDB_GREGSET_T, GDB_FPREGSET_T): Define.

View file

@ -2034,7 +2034,7 @@ typecmp (staticp, t1, t2)
we need to do this so you can take something like a map<const
char *>, and properly access map["hello"], because the
argument to [] will be a reference to a pointer to a char,
and the arrgument will be a pointer to a char. */
and the argument will be a pointer to a char. */
while ( TYPE_CODE(tt1) == TYPE_CODE_REF ||
TYPE_CODE (tt1) == TYPE_CODE_PTR)
{
@ -2539,7 +2539,7 @@ value_struct_elt (argp, args, name, static_memfuncp, err)
if (v == (value_ptr) - 1)
{
error ("Argument list of %s mismatch with component in the structure.", name);
error ("One of the arguments you tried to pass to %s could not be converted to what the function wants.", name);
}
else if (v == 0)
{