aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-03-21 14:43:37 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-03-21 14:43:37 +0000
commit3489610d2dea02c6a2863fc5f84c9b918faf8c4d (patch)
tree606723faec2c539e57907daf784d6471628041e7 /gdb/ada-lang.c
parent8c1a34e7f56df3c2a3de9946bd185a897c18c20d (diff)
downloadgdb-3489610d2dea02c6a2863fc5f84c9b918faf8c4d.zip
gdb-3489610d2dea02c6a2863fc5f84c9b918faf8c4d.tar.gz
gdb-3489610d2dea02c6a2863fc5f84c9b918faf8c4d.tar.bz2
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.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c1
1 files changed, 1 insertions, 0 deletions
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));