[RFA] Patch to a valops.c error message

Daniel Berlin dberlin@redhat.com
Sat Jul 15 21:48:00 GMT 2000


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


More information about the Gdb-patches mailing list