Skip to content

Commit

Permalink
Fix array_view size in eval_op_objc_msgcall call
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbssa committed May 15, 2024
1 parent 80fbdf2 commit 2dbed79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gdb/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1917,8 +1917,7 @@ eval_binop_assign_modify (struct type *expect_type, struct expression *exp,
return value_assign (arg1, arg2);
}

/* Note that ARGS needs 2 empty slots up front and must end with a
null pointer. */
/* Note that ARGS needs 2 empty slots up front. */
static struct value *
eval_op_objc_msgcall (struct type *expect_type, struct expression *exp,
enum noside noside, CORE_ADDR selector,
Expand Down Expand Up @@ -2257,7 +2256,7 @@ objc_msgcall_operation::evaluate (struct type *expect_type,
return eval_op_objc_msgcall (expect_type, exp, noside, std::
get<0> (m_storage), target,
gdb::make_array_view (argvec,
args.size () + 3));
args.size () + 2));
}

value *
Expand Down

0 comments on commit 2dbed79

Please sign in to comment.