Introduce strncmp_iw
authorPedro Alves <palves@redhat.com>
Mon, 17 Jul 2017 19:08:48 +0000 (20:08 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 17 Jul 2017 19:08:48 +0000 (20:08 +0100)
commit1d550c828c00978860de9ba35b9ab5b182b968bc
tree954214a0143cabe168cbd44c3480eec62604f215
parentdd57c19c1abd19c71538631cd9e5b0f70eff5a5c
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.
gdb/ChangeLog
gdb/utils.c
gdb/utils.h
This page took 0.02588 seconds and 4 git commands to generate.