This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Patch to a valops.c error message
- To: dberlin at redhat dot com (Daniel Berlin)
- Subject: Re: [RFA] Patch to a valops.c error message
- From: David Taylor <taylor at cygnus dot com>
- Date: Mon, 17 Jul 2000 15:20:31 -0400
- cc: GDB patches mailing list <gdb-patches at sourceware dot cygnus dot com>
From: dberlin@redhat.com (Daniel Berlin)
Date: 16 Jul 2000 00:48:13 -0400
Unless someone objects to this, i'd like to check it in.
Nobody understands what "Argument list of <name> mismatch with
component in the structure" means.
This just puzzles me, and I had to grep the sources to even figure out
what the hell it was talking about (IE I couldn't even figure out what
was going on when it gave this message).
I pity the poor users.
It's much clearer to just say "One of the arguments you tried to pass
to <name> could not be converted to what the function wants".
That would immediately tell me what was happening (as well as the
user), which is that it's trying to see if the arguments match in
type, and they don't.
Too bad i can't extract the argument number without adding another
parameter to 5 different functions, since that would be even *more*
helpful (We actually know when we do the type comparison which
argument we can't convert, we just have no way of passing that info
back to this routine, unless I add 1 and negate it, which would just
hurt the next person to look at the code.)
--Dan
Approved.