aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-01-20 10:18:40 +0100
committerJan Beulich <jbeulich@suse.com>2023-01-20 10:18:40 +0100
commita2e2f5ad7431e6179092b770fe8ce54a32b4246b (patch)
tree4bebc4f3312869fd4574f80dd7e05151f7841c02 /gdb/c-lang.c
parent2d9e089097806867bf6842034bf577e55469f624 (diff)
downloadgdb-a2e2f5ad7431e6179092b770fe8ce54a32b4246b.zip
gdb-a2e2f5ad7431e6179092b770fe8ce54a32b4246b.tar.gz
gdb-a2e2f5ad7431e6179092b770fe8ce54a32b4246b.tar.bz2
x86: split i386-gen's opcode hash entry struct
All glibc malloc() implementations I've checked have a smallest allocation size worth of 3 pointers, with an increment worth of 2 pointers. Hence mnemonics with multiple templates can be stored more efficiently when maintaining the shared "name" field only in the actual hash entry. (To express the shared nature, also convert "name" to by pointer-to-const.) While doing the conversation also pull out common code from the involved if/else construct in expand_templates().
Diffstat (limited to 'gdb/c-lang.c')
0 files changed, 0 insertions, 0 deletions