diff options
author | Pedro Alves <palves@redhat.com> | 2017-07-17 20:08:48 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-07-17 20:08:48 +0100 |
commit | 1d550c828c00978860de9ba35b9ab5b182b968bc (patch) | |
tree | 954214a0143cabe168cbd44c3480eec62604f215 /gdb/cli/cli-cmds.c | |
parent | dd57c19c1abd19c71538631cd9e5b0f70eff5a5c (diff) | |
download | gdb-1d550c828c00978860de9ba35b9ab5b182b968bc.zip gdb-1d550c828c00978860de9ba35b9ab5b182b968bc.tar.gz gdb-1d550c828c00978860de9ba35b9ab5b182b968bc.tar.bz2 |
Introduce strncmp_iw
The explicit locations completer patch will need a strncmp_iw
function, that to strcmp_iw like strncmp is to strcmp. This patch
implements it.
(Unit tests added a bit further down in this series will exercise
this.)
gdb/ChangeLog:
2017-07-17 Pedro Alves <palves@redhat.com>
* utils.c (enum class strncmp_iw_mode): New.
(strcmp_iw): Rename to ...
(strncmp_iw_with_mode): ... this. Add string2_len and mode
parameters. Handle them.
(strncmp_iw): New.
(strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
* utils.h (strncmp_iw): Declare.
(strcmp_iw): Move describing comments here.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
0 files changed, 0 insertions, 0 deletions