This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Introduce strncmp_iw
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 17 Jul 2017 15:44:41 -0400
- Subject: [binutils-gdb] Introduce strncmp_iw
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 1d550c828c00978860de9ba35b9ab5b182b968bc ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 1d550c828c00978860de9ba35b9ab5b182b968bc
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.