8424cc978c
For a forthcoming patch, I need a "skip_to_colon" function. I noticed there are two skip_to_semicolon (one in gdb and one in gdbserver). I thought we could put it in common/, and generalize it for any character. It turns out that the strchrnul function does exactly that. I imported the corresponding module from gnulib, for those systems that do not have it. There are probably more places where this function can be used instead of doing the work by hand (I am looking at remote-utils.c::look_up_one_symbol). gdb/ChangeLog: * remote.c (skip_to_semicolon): Remove. (remote_parse_stop_reply): Use strchrnul instead of skip_to_semicolon. * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strchrnul. * gnulib/aclocal.m4: Regenerate. * gnulib/config.in: Regenerate. * gnulib/configure: Regenerate. * gnulib/import/Makefile.am: Regenerate. * gnulib/import/Makefile.in: Regenerate. * gnulib/import/m4/gnulib-cache.m4: Regenerate. * gnulib/import/m4/gnulib-comp.m4: Regenerate. * gnulib/import/m4/rawmemchr.m4: New file. * gnulib/import/m4/strchrnul.m4: New file. * gnulib/import/rawmemchr.c: New file. * gnulib/import/rawmemchr.valgrind: New file. * gnulib/import/strchrnul.c: New file. * gnulib/import/strchrnul.valgrind: New file. gdb/gdbserver/ChangeLog: * server.c (skip_to_semicolon): Remove. (process_point_options): Use strchrnul instead of skip_to_semicolon.
70 lines
2.2 KiB
Text
70 lines
2.2 KiB
Text
# Copyright (C) 2002-2015 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This file is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this file. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
# As a special exception to the GNU General Public License,
|
|
# this file may be distributed as part of a program that
|
|
# contains a configuration script generated by Autoconf, under
|
|
# the same distribution terms as the rest of that program.
|
|
#
|
|
# Generated by gnulib-tool.
|
|
#
|
|
# This file represents the specification of how gnulib-tool is used.
|
|
# It acts as a cache: It is written and read by gnulib-tool.
|
|
# In projects that use version control, this file is meant to be put under
|
|
# version control, like the configure.ac and various Makefile.am files.
|
|
|
|
|
|
# Specification in the form of a command-line invocation:
|
|
# gnulib-tool --import --dir=. --lib=libgnu --source-base=import --m4-base=import/m4 --doc-base=doc --tests-base=tests --aux-dir=import/extra --no-conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca canonicalize-lgpl dirent dirfd errno fnmatch-gnu frexpl inttypes lstat memchr memmem pathmax readlink rename signal-h strchrnul strstr strtok_r sys_stat unistd update-copyright wchar wctype-h
|
|
|
|
# Specification in the form of a few gnulib-tool.m4 macro invocations:
|
|
gl_LOCAL_DIR([])
|
|
gl_MODULES([
|
|
alloca
|
|
canonicalize-lgpl
|
|
dirent
|
|
dirfd
|
|
errno
|
|
fnmatch-gnu
|
|
frexpl
|
|
inttypes
|
|
lstat
|
|
memchr
|
|
memmem
|
|
pathmax
|
|
readlink
|
|
rename
|
|
signal-h
|
|
strchrnul
|
|
strstr
|
|
strtok_r
|
|
sys_stat
|
|
unistd
|
|
update-copyright
|
|
wchar
|
|
wctype-h
|
|
])
|
|
gl_AVOID([])
|
|
gl_SOURCE_BASE([import])
|
|
gl_M4_BASE([import/m4])
|
|
gl_PO_BASE([])
|
|
gl_DOC_BASE([doc])
|
|
gl_TESTS_BASE([tests])
|
|
gl_LIB([libgnu])
|
|
gl_MAKEFILE_NAME([])
|
|
gl_MACRO_PREFIX([gl])
|
|
gl_PO_DOMAIN([])
|
|
gl_WITNESS_C_MACRO([])
|
|
gl_VC_FILES([false])
|