A lean way for getting the size of the instruction at a given address

Zied Guermazi <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.