aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnulib/config.in
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2016-01-28 10:28:56 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2016-01-28 10:28:56 -0500
commit8424cc978c8c76aca7945d50408762de65646095 (patch)
tree3525c71e308de0a6e4eab6ea409ac6fe67a5f94b /gdb/gnulib/config.in
parent7fe8399de97e50f631ce28ceb42515862a927556 (diff)
downloadgdb-8424cc978c8c76aca7945d50408762de65646095.zip
gdb-8424cc978c8c76aca7945d50408762de65646095.tar.gz
gdb-8424cc978c8c76aca7945d50408762de65646095.tar.bz2
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.
Diffstat (limited to 'gdb/gnulib/config.in')
-rw-r--r--gdb/gnulib/config.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/gnulib/config.in b/gdb/gnulib/config.in
index 4587003..1371394 100644
--- a/gdb/gnulib/config.in
+++ b/gdb/gnulib/config.in
@@ -113,6 +113,9 @@
/* Define to 1 when the gnulib module memmem should be tested. */
#undef GNULIB_TEST_MEMMEM
+/* Define to 1 when the gnulib module rawmemchr should be tested. */
+#undef GNULIB_TEST_RAWMEMCHR
+
/* Define to 1 when the gnulib module readlink should be tested. */
#undef GNULIB_TEST_READLINK
@@ -128,6 +131,9 @@
/* Define to 1 when the gnulib module stat should be tested. */
#undef GNULIB_TEST_STAT
+/* Define to 1 when the gnulib module strchrnul should be tested. */
+#undef GNULIB_TEST_STRCHRNUL
+
/* Define to 1 when the gnulib module strstr should be tested. */
#undef GNULIB_TEST_STRSTR
@@ -276,6 +282,9 @@
/* Define to 1 if you have the `mprotect' function. */
#undef HAVE_MPROTECT
+/* Define to 1 if you have the `rawmemchr' function. */
+#undef HAVE_RAWMEMCHR
+
/* Define to 1 if acosf is declared even after undefining macros. */
#undef HAVE_RAW_DECL_ACOSF
@@ -1117,6 +1126,9 @@
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
+/* Define to 1 if you have the `strchrnul' function. */
+#undef HAVE_STRCHRNUL
+
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H