This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] Patch to a valops.c error message


    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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]