old-cross-binutils/gdb/gnulib/import
Simon Marchi 8424cc978c Import strchrnul from gnulib and use it
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.
2016-01-28 10:28:56 -05:00
..
extra Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
m4 Import strchrnul from gnulib and use it 2016-01-28 10:28:56 -05:00
alloca.c
alloca.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
basename-lgpl.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
canonicalize-lgpl.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
config.charset Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
dirent.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
dirfd.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
dirname-lgpl.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
dirname.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
dosname.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
errno.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
float+.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
float.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
float.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
fnmatch.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
fnmatch.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
fnmatch_loop.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
fpucw.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
frexp.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
frexpl.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
gettimeofday.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
inttypes.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
isnan.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
isnand-nolibm.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
isnand.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
isnanl-nolibm.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
isnanl.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
itold.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
localcharset.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
localcharset.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
lstat.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
Makefile.am Import strchrnul from gnulib and use it 2016-01-28 10:28:56 -05:00
Makefile.in Import strchrnul from gnulib and use it 2016-01-28 10:28:56 -05:00
malloc.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
malloca.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
malloca.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
malloca.valgrind
math.c
math.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
mbrtowc.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
mbsinit.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
mbsrtowcs-impl.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
mbsrtowcs-state.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
mbsrtowcs.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
memchr.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
memchr.valgrind
memmem.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
pathmax.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
rawmemchr.c Import strchrnul from gnulib and use it 2016-01-28 10:28:56 -05:00
rawmemchr.valgrind Import strchrnul from gnulib and use it 2016-01-28 10:28:56 -05:00
readlink.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
ref-add.sin Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
ref-del.sin Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
rename.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
rmdir.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
same-inode.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
signal.in.h Import the "signal-h" module from gnulib 2015-08-27 13:26:22 +01:00
stat.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
stdbool.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
stddef.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
stdint.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
stdio.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
stdlib.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
str-two-way.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
strchrnul.c Import strchrnul from gnulib and use it 2016-01-28 10:28:56 -05:00
strchrnul.valgrind Import strchrnul from gnulib and use it 2016-01-28 10:28:56 -05:00
streq.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
string.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
stripslash.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
strnlen1.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
strnlen1.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
strstr.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
strtok_r.c Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
sys_stat.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
sys_time.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
sys_types.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
time.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
unistd.c
unistd.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
verify.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
wchar.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00
wctype-h.c
wctype.in.h Update gnulib to current upstream master 2015-08-24 18:53:49 +01:00