diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2000-07-17 19:41:10 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2000-07-17 19:41:10 +0000 |
commit | 7168a814a6aa0ad41c4956b042d642e42acfe7a3 (patch) | |
tree | 1e6e412ea0486242dff04d7250e40d06f096b048 /gdb | |
parent | f7cb7d68c22ad9334ead499c25008d107906b891 (diff) | |
download | gdb-7168a814a6aa0ad41c4956b042d642e42acfe7a3.zip gdb-7168a814a6aa0ad41c4956b042d642e42acfe7a3.tar.gz gdb-7168a814a6aa0ad41c4956b042d642e42acfe7a3.tar.bz2 |
modify error message
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/valops.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1c98105..b181930 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/valops.c b/gdb/valops.c index 711392f..5090d5f 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -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) { @@ -2354,7 +2354,7 @@ search_struct_method (name, arg1p, args, offset, static_memfuncp, type) *static_memfuncp = 1; v = value_fn_field (arg1p, f, j, type, offset); if (v != NULL) - return v; + return v; } j--; } @@ -2536,10 +2536,10 @@ value_struct_elt (argp, args, name, static_memfuncp, err) } else v = search_struct_method (name, argp, args, 0, static_memfuncp, t); - + 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) { |