aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/ada-lang.c1
2 files changed, 5 insertions, 0 deletions
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 <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
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));