diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-08 04:15:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-08 04:15:39 +0000 |
commit | 5086187cf9ff8626f0ef2ee885be62dde9eae4d6 (patch) | |
tree | 941724cce081d5f6f255a25dffbe3ef318158873 /gdb/infcall.c | |
parent | 300475fe9d2e1ffb2ea4bb7f7d3fe9a11bbf8c43 (diff) | |
download | gdb-5086187cf9ff8626f0ef2ee885be62dde9eae4d6.zip gdb-5086187cf9ff8626f0ef2ee885be62dde9eae4d6.tar.gz gdb-5086187cf9ff8626f0ef2ee885be62dde9eae4d6.tar.bz2 |
2005-02-07 Andrew Cagney <cagney@gnu.org>
* cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
value_contents_writeable, include note that there are problems.
* breakpoint.c, infcall.c: Use VALUE_LVAL.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index f91777c..e2ef6b4 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -536,10 +536,11 @@ call_function_by_hand (struct value *function, int nargs, struct value **args) this point. */ /* Go see if the actual parameter is a variable of type pointer to function or just a function. */ - if (args[i]->lval == not_lval) + if (VALUE_LVAL (args[i]) == not_lval) { char *arg_name; - if (find_pc_partial_function ((CORE_ADDR) args[i]->aligner.contents[0], &arg_name, NULL, NULL)) + /* NOTE: cagney/2005-01-02: THIS IS BOGUS. */ + if (find_pc_partial_function ((CORE_ADDR) value_contents (args[i])[0], &arg_name, NULL, NULL)) error ("\ You cannot use function <%s> as argument. \n\ You must use a pointer to function type variable. Command ignored.", arg_name); |