mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 10:09:16 +08:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user