X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fvalops.c;h=798e31fc6462befabf7aecefc5bd00868edf86a0;hb=0004e5a2cf40bcf4485a7b552b5d19ed69d11eba;hp=cd5d4ca87f8ecb6b3dc2aa1a0b36b52f4f07d57d;hpb=8395426148f8340771c51d37f9244867974ef42a;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/valops.c b/gdb/valops.c index cd5d4ca87f..798e31fc64 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1488,7 +1488,7 @@ hand_function_call (struct value *function, int nargs, struct value **args) if (param_type) /* if this parameter is a pointer to function */ if (TYPE_CODE (param_type) == TYPE_CODE_PTR) - if (TYPE_CODE (param_type->target_type) == TYPE_CODE_FUNC) + if (TYPE_CODE (TYPE_TARGET_TYPE (param_type)) == TYPE_CODE_FUNC) /* elz: FIXME here should go the test about the compiler used to compile the target. We want to issue the error message only if the compiler used was HP's aCC.