From: Joel Brobecker Date: Mon, 21 Mar 2011 14:43:37 +0000 (+0000) Subject: undefined newexpr->gdbarch field in ada-lang.c:replace_operator_with_call X-Git-Tag: cgen-snapshot-20110401~175 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3489610d2dea02c6a2863fc5f84c9b918faf8c4d;p=external%2Fbinutils.git undefined newexpr->gdbarch field in ada-lang.c:replace_operator_with_call 2011-03-20 Jan Kratochvil * ada-lang.c (replace_operator_with_call): Copy also GDBARCH. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d79197e..e532ef8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-03-21 Jan Kratochvil + + * ada-lang.c (replace_operator_with_call): Copy also GDBARCH. + 2012-03-21 Joel Brobecker * ada-lang.c (replace_operator_with_call): Use xzalloc instead diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 392ffea..5728ac8 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -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));