mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
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:
@ -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>
|
2015-10-22 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* infrun.c (stop_after_trap): Delete.
|
* infrun.c (stop_after_trap): Delete.
|
||||||
|
@ -2818,6 +2818,7 @@ aarch64_displaced_step_copy_insn (struct gdbarch *gdbarch,
|
|||||||
dsd.new_addr = to;
|
dsd.new_addr = to;
|
||||||
dsd.regs = regs;
|
dsd.regs = regs;
|
||||||
dsd.dsc = dsc;
|
dsd.dsc = dsc;
|
||||||
|
dsd.insn_count = 0;
|
||||||
aarch64_relocate_instruction (insn, &visitor,
|
aarch64_relocate_instruction (insn, &visitor,
|
||||||
(struct aarch64_insn_data *) &dsd);
|
(struct aarch64_insn_data *) &dsd);
|
||||||
gdb_assert (dsd.insn_count <= DISPLACED_MODIFIED_INSNS);
|
gdb_assert (dsd.insn_count <= DISPLACED_MODIFIED_INSNS);
|
||||||
|
Reference in New Issue
Block a user