diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-01-20 10:17:23 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-01-20 10:17:23 +0100 |
commit | 6d86a54595d80b93baaaafe0b4db3dea6a5d451e (patch) | |
tree | 2c2a8be567ad9ddd769b55766b2035131a1c5558 /gdb/c-lang.c | |
parent | 992dd393c9430ac77df30017f47dc607da69e9a0 (diff) | |
download | gdb-6d86a54595d80b93baaaafe0b4db3dea6a5d451e.zip gdb-6d86a54595d80b93baaaafe0b4db3dea6a5d451e.tar.gz gdb-6d86a54595d80b93baaaafe0b4db3dea6a5d451e.tar.bz2 |
x86: avoid strcmp() in a few places
Now that we have identifiers for the mnemonic strings we can avoid
strcmp() in a number of places, comparing the offsets into the mnemonic
string table instead. While doing this also
- convert a leftover strncmp() to startswith() (apparently an oversight
when rebasing the original patch introducing the startswith() uses),
- use the new shorthand for current_templates->start also elsewhere in
md_assemble() (valid up to the point where match_template() is
called).
Diffstat (limited to 'gdb/c-lang.c')
0 files changed, 0 insertions, 0 deletions