Initialize field insn_count correctly
This patch initialize dsd.insn_count, otherwise, it triggers the assert below on testings we did recently. gdb: 2015-10-23 Yao Qi <yao.qi@linaro.org> * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set dsd.insn_count to zero.
This commit is contained in:
parent
e9f3d8639d
commit
034f1a812d
@ -1,3 +1,8 @@
|
||||
2015-10-23 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
|
||||
dsd.insn_count to zero.
|
||||
|
||||
2015-10-22 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* infrun.c (stop_after_trap): Delete.
|
||||
|
@ -2818,6 +2818,7 @@ aarch64_displaced_step_copy_insn (struct gdbarch *gdbarch,
|
||||
dsd.new_addr = to;
|
||||
dsd.regs = regs;
|
||||
dsd.dsc = dsc;
|
||||
dsd.insn_count = 0;
|
||||
aarch64_relocate_instruction (insn, &visitor,
|
||||
(struct aarch64_insn_data *) &dsd);
|
||||
gdb_assert (dsd.insn_count <= DISPLACED_MODIFIED_INSNS);
|
||||
|
Loading…
Reference in New Issue
Block a user