A lean way for getting the size of the instruction at a given address
Zied Guermazi
zied.guermazi@trande.de
Sun Apr 4 07:59:01 GMT 2021
hi
I need to get the size of the instruction at a given address. I am
currently using gdb_insn_length (struct gdbarch *gdbarch, CORE_ADDR
addr) which calls gdb_print_insn (struct gdbarch *gdbarch, CORE_ADDR
memaddr, struct ui_file *stream, int *branch_delay_insns). and this is
consuming a huge time, considering that this is used in branch tracing
and this gets repeated up to few millions times.
Is there a lean way for getting the size of the instruction at a given
address, I am using it for aarch64 and arm targets.
Kind Regards
Zied Guermazi
More information about the Gdb
mailing list