undefined newexpr->gdbarch field in ada-lang.c:replace_operator_with_call
2011-03-20 Jan Kratochvil <jan.kratochvil@redhat.com> * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
This commit is contained in:
parent
8c1a34e7f5
commit
3489610d2d
|
@ -1,3 +1,7 @@
|
|||
2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
|
||||
|
||||
2012-03-21 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-lang.c (replace_operator_with_call): Use xzalloc instead
|
||||
|
|
|
@ -3661,6 +3661,7 @@ replace_operator_with_call (struct expression **expp, int pc, int nargs,
|
|||
|
||||
newexp->nelts = exp->nelts + 7 - oplen;
|
||||
newexp->language_defn = exp->language_defn;
|
||||
newexp->gdbarch = exp->gdbarch;
|
||||
memcpy (newexp->elts, exp->elts, EXP_ELEM_TO_BYTES (pc));
|
||||
memcpy (newexp->elts + pc + 7, exp->elts + pc + oplen,
|
||||
EXP_ELEM_TO_BYTES (exp->nelts - pc - oplen));
|
||||
|
|
Loading…
Reference in New Issue