diff options
author | Anton Blanchard <anton@samba.org> | 2015-03-25 13:44:28 +1100 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-07-10 19:57:35 +0930 |
commit | c71d757c7a858115d4c7545c87ce26b08106d250 (patch) | |
tree | 8d62d391572423b6662d988607fb98134588ea4d /gdb/go-lang.c | |
parent | 587c9bc4050982247fa1649a5f32a22860686af5 (diff) | |
download | gdb-c71d757c7a858115d4c7545c87ce26b08106d250.zip gdb-c71d757c7a858115d4c7545c87ce26b08106d250.tar.gz gdb-c71d757c7a858115d4c7545c87ce26b08106d250.tar.bz2 |
powerpc: Only initialise opcode indices once
The gdb TUI is calling gdb_print_insn() (which calls
disassemble_init_powerpc()) enough to show up high in profiles. As
suggested by Alan, only initialise if the indices are empty.
* ppc-dis.c (disassemble_init_powerpc): Only initialise
powerpc_opcd_indices and vle_opcd_indices once.
Diffstat (limited to 'gdb/go-lang.c')
0 files changed, 0 insertions, 0 deletions