diff options
author | Gary Benson <gbenson@redhat.com> | 2016-01-18 09:45:10 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2016-01-18 11:39:42 +0000 |
commit | eb0edac83f82516bbbd5a0412bbdf7fd27c687f2 (patch) | |
tree | e1e7a87000a8f625cf64fa551df6ed2305394313 /gdb/gdbserver/config.in | |
parent | 760f6ee894c5f473777c7ff5ebe5a04b25651ce4 (diff) | |
download | gdb-eb0edac83f82516bbbd5a0412bbdf7fd27c687f2.zip gdb-eb0edac83f82516bbbd5a0412bbdf7fd27c687f2.tar.gz gdb-eb0edac83f82516bbbd5a0412bbdf7fd27c687f2.tar.bz2 |
Fix gdbserver build failure on targets without fork
This commit fixes nat/linux-namespaces.c to build correctly on
targets without fork.
gdb/ChangeLog:
* nat/linux-namespaces.c (do_fork): New function.
(linux_mntns_get_helper): Use the above.
gdb/gdbserver/ChangeLog:
* configure.ac (AC_FUNC_FORK): New check.
* config.in: Regenerate.
* configure: Likewise.
Diffstat (limited to 'gdb/gdbserver/config.in')
-rw-r--r-- | gdb/gdbserver/config.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/gdbserver/config.in b/gdb/gdbserver/config.in index e2566a9..2c3a69a 100644 --- a/gdb/gdbserver/config.in +++ b/gdb/gdbserver/config.in @@ -99,6 +99,9 @@ /* Define to 1 if you have the `fdwalk' function. */ #undef HAVE_FDWALK +/* Define to 1 if you have the `fork' function. */ +#undef HAVE_FORK + /* Define to 1 if you have the `getauxval' function. */ #undef HAVE_GETAUXVAL @@ -286,9 +289,21 @@ /* Define if UST is available */ #undef HAVE_UST +/* Define to 1 if you have the `vfork' function. */ +#undef HAVE_VFORK + +/* Define to 1 if you have the <vfork.h> header file. */ +#undef HAVE_VFORK_H + /* Define to 1 if you have the <wait.h> header file. */ #undef HAVE_WAIT_H +/* Define to 1 if `fork' works. */ +#undef HAVE_WORKING_FORK + +/* Define to 1 if `vfork' works. */ +#undef HAVE_WORKING_VFORK + /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT @@ -393,3 +408,9 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE + +/* Define to `int' if <sys/types.h> does not define. */ +#undef pid_t + +/* Define as `fork' if `vfork' does not work. */ +#undef vfork |