commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnumach] 01/02: New upstream version 1.8+git20170911


From: Samuel Thibault
Subject: [gnumach] 01/02: New upstream version 1.8+git20170911
Date: Mon, 11 Sep 2017 09:12:19 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to annotated tag debian/2%1.8+git20170911-1
in repository gnumach.

commit e338a61caf2597d0adab12600e0b7522a451197b
Author: Samuel Thibault <address@hidden>
Date:   Mon Sep 11 08:07:17 2017 +0000

    New upstream version 1.8+git20170911
---
 ChangeLog                |  76 +++++++++++
 INSTALL                  | 320 +++++++++++++++++++++++------------------------
 Makefile.am              |   1 +
 Makefile.in              |  13 +-
 aclocal.m4               |  46 +++----
 build-aux/config.guess   |  28 +++--
 build-aux/config.sub     |  22 +++-
 build-aux/depcomp        |   6 +-
 configure                |  20 +--
 ddb/db_access.c          |   3 +-
 ddb/db_command.c         |  46 +++++++
 ddb/db_examine.c         |   5 +-
 ddb/db_print.c           |  43 ++++++-
 ddb/db_task_thread.c     |  25 ++++
 ddb/db_task_thread.h     |   6 +
 ddb/db_variables.c       |   2 +
 doc/mach.info            | 242 +++++++++++++++++------------------
 doc/mach.info-1          |  10 +-
 doc/mach.info-2          |  26 +++-
 doc/mach.texi            |  22 +++-
 doc/stamp-vti            |   8 +-
 doc/version.texi         |   8 +-
 i386/i386/db_interface.c |  12 +-
 i386/i386/db_interface.h |   4 +-
 i386/i386/trap.c         |  10 ++
 i386/intel/pmap.c        |  10 +-
 i386/intel/pmap.h        |   6 -
 ipc/mach_port.c          |  10 ++
 ipc/mach_port.h          |   4 +
 kern/host.c              |   5 +-
 version.m4               |   2 +-
 vm/vm_fault.c            |   2 +-
 vm/vm_map.c              |   8 +-
 33 files changed, 658 insertions(+), 393 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f367650..ae1453e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,79 @@
+2017-08-27  Samuel Thibault  <address@hidden>
+
+       ddb: More gracefully handle address errors
+       * i386/i386/db_interface.h (db_read_bytes): Return boolean_t instead of
+       void.
+       * i386/i386/db_interface.c (db_user_to_kernel_address): Return -1
+       instead of calling db_error() if address is bogus.
+       (db_read_bytes): Return FALSE instead of calling db_error() if address
+       is bogus.
+       * ddb/db_access.c (db_get_task_value): Return 0 if db_read_bytes failed.
+       * ddb/db_examine.c (db_xcdump): Only print * if db_read_bytes failed.
+
+2017-08-14  Justus Winter  <address@hidden>
+
+       i386: Fix pmap_remove on PAE kernels.
+       * i386/intel/pmap.c (pmap_remove): Fix iteration over page directory.
+       (pmap_enter): Explain why it is ok here.
+
+       vm: Improve error handling.
+       * vm/vm_map.c (vm_map_create): Gracefully handle resource exhaustion.
+       (vm_map_fork): Likewise at the callsite.
+
+       Fix typo.
+
+2017-08-12  Justus Winter  <address@hidden>
+
+       ddb: Add magic variable $mapXX.
+       Maps '$mapXX' to a VM map structure address.  @var{xx} is a task
+       identification number printed by a @code{show all tasks} command.
+
+       * ddb/db_task_thread.c (db_get_map): New function.
+       * ddb/db_task_thread.h (db_get_map): New declaration.
+       * ddb/db_variables.c (db_vars): Add new variable.
+       * doc/mach.texi: Document this.
+
+2017-08-12  Justus Winter  <address@hidden>
+
+       vm: Mute paging error message.
+       * vm/vm_fault.c (vm_fault_page): Mute paging error message if the
+       objects pager is NULL.  This happens when a pager is destroyed,
+       e.g. at system shutdown time when the root filesystem terminates.
+
+2017-08-05  Justus Winter  <address@hidden>
+
+       ddb: debug traps and port references
+       * ddb/db_command.c (db_debug_all_traps_cmd): New declaration and
+       function.
+       (db_debug_port_references_cmd): Likewise.
+       * doc/mach.texi: Describe new commands.
+       * i386/i386/db_interface.h (db_debug_all_traps): New declaration.
+       * i386/i386/trap.c (db_debug_all_traps): New function.
+       * ipc/mach_port.c (db_debug_port_references): New function.
+       * ipc/mach_port.h (db_debug_port_references): New declaration.
+
+       ddb: Print scheduling information.
+       * ddb/db_print.c (OPTION_SCHED): New macro.
+       (db_print_thread): Display scheduling information if the flag is
+       given.
+       (db_print_task): Adapt.
+       (db_show_all_threads): Parse new modifier.
+       (db_show_one_thread): Likewise.
+       * doc/mach.texi: Document the new flag.
+
+       doc: Document 'show all tasks'.
+
+       kern: Fix reporting the minimum quantum used for scheduling.
+       * kern/host.c (host_info): Scale 'min_quantum' by 'tick', then convert
+       to milliseconds.
+
+       Steal '__divdi3'.
+       * Makefile.am (clib_routines): Steal '__divdi3' from the gcc runtime.
+
+       i386: Make function static.
+       * i386/intel/pmap.c (pmap_remove_range): Make function static.
+       * i386/intel/pmap.h (pmap_remove_range): Remove declaration.
+
 2017-06-10  Samuel Thibault  <address@hidden>
 
        Fix year computation
diff --git a/INSTALL b/INSTALL
index 2099840..8865734 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,8 +1,8 @@
 Installation Instructions
 *************************
 
-Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
-Inc.
+   Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
+Foundation, Inc.
 
    Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
@@ -12,97 +12,96 @@ without warranty of any kind.
 Basic Installation
 ==================
 
-   Briefly, the shell command `./configure && make && make install'
+   Briefly, the shell command './configure && make && make install'
 should configure, build, and install this package.  The following
-more-detailed instructions are generic; see the `README' file for
+more-detailed instructions are generic; see the 'README' file for
 instructions specific to this package.  Some packages provide this
-`INSTALL' file but do not implement all of the features documented
+'INSTALL' file but do not implement all of the features documented
 below.  The lack of an optional feature in a given package is not
 necessarily a bug.  More recommendations for GNU packages can be found
 in *note Makefile Conventions: (standards)Makefile Conventions.
 
-   The `configure' shell script attempts to guess correct values for
+   The 'configure' shell script attempts to guess correct values for
 various system-dependent variables used during compilation.  It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions.  Finally, it creates a shell script `config.status' that
+those values to create a 'Makefile' in each directory of the package.
+It may also create one or more '.h' files containing system-dependent
+definitions.  Finally, it creates a shell script 'config.status' that
 you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
+file 'config.log' containing compiler output (useful mainly for
+debugging 'configure').
 
-   It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring.  Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
+   It can also use an optional file (typically called 'config.cache' and
+enabled with '--cache-file=config.cache' or simply '-C') that saves the
+results of its tests to speed up reconfiguring.  Caching is disabled by
+default to prevent problems with accidental use of stale cache files.
 
    If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
+to figure out how 'configure' could check whether to do them, and mail
+diffs or instructions to the address given in the 'README' so they can
 be considered for the next release.  If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
+some point 'config.cache' contains results you don't want to keep, you
 may remove or edit it.
 
-   The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'.  You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
+   The file 'configure.ac' (or 'configure.in') is used to create
+'configure' by a program called 'autoconf'.  You need 'configure.ac' if
+you want to change it or regenerate 'configure' using a newer version of
+'autoconf'.
 
    The simplest way to compile this package is:
 
-  1. `cd' to the directory containing the package's source code and type
-     `./configure' to configure the package for your system.
+  1. 'cd' to the directory containing the package's source code and type
+     './configure' to configure the package for your system.
 
-     Running `configure' might take a while.  While running, it prints
+     Running 'configure' might take a while.  While running, it prints
      some messages telling which features it is checking for.
 
-  2. Type `make' to compile the package.
+  2. Type 'make' to compile the package.
 
-  3. Optionally, type `make check' to run any self-tests that come with
+  3. Optionally, type 'make check' to run any self-tests that come with
      the package, generally using the just-built uninstalled binaries.
 
-  4. Type `make install' to install the programs and any data files and
+  4. Type 'make install' to install the programs and any data files and
      documentation.  When installing into a prefix owned by root, it is
      recommended that the package be configured and built as a regular
-     user, and only the `make install' phase executed with root
+     user, and only the 'make install' phase executed with root
      privileges.
 
-  5. Optionally, type `make installcheck' to repeat any self-tests, but
+  5. Optionally, type 'make installcheck' to repeat any self-tests, but
      this time using the binaries in their final installed location.
      This target does not install anything.  Running this target as a
-     regular user, particularly if the prior `make install' required
+     regular user, particularly if the prior 'make install' required
      root privileges, verifies that the installation completed
      correctly.
 
   6. You can remove the program binaries and object files from the
-     source code directory by typing `make clean'.  To also remove the
-     files that `configure' created (so you can compile the package for
-     a different kind of computer), type `make distclean'.  There is
-     also a `make maintainer-clean' target, but that is intended mainly
+     source code directory by typing 'make clean'.  To also remove the
+     files that 'configure' created (so you can compile the package for
+     a different kind of computer), type 'make distclean'.  There is
+     also a 'make maintainer-clean' target, but that is intended mainly
      for the package's developers.  If you use it, you may have to get
      all sorts of other programs in order to regenerate files that came
      with the distribution.
 
-  7. Often, you can also type `make uninstall' to remove the installed
+  7. Often, you can also type 'make uninstall' to remove the installed
      files again.  In practice, not all packages have tested that
      uninstallation works correctly, even though it is required by the
      GNU Coding Standards.
 
-  8. Some packages, particularly those that use Automake, provide `make
+  8. Some packages, particularly those that use Automake, provide 'make
      distcheck', which can by used by developers to test that all other
-     targets like `make install' and `make uninstall' work correctly.
+     targets like 'make install' and 'make uninstall' work correctly.
      This target is generally not run by end users.
 
 Compilers and Options
 =====================
 
    Some systems require unusual options for compilation or linking that
-the `configure' script does not know about.  Run `./configure --help'
+the 'configure' script does not know about.  Run './configure --help'
 for details on some of the pertinent environment variables.
 
-   You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment.  Here
-is an example:
+   You can give 'configure' initial values for configuration parameters
+by setting variables in the command line or in the environment.  Here is
+an example:
 
      ./configure CC=c99 CFLAGS=-g LIBS=-lposix
 
@@ -113,21 +112,21 @@ Compiling For Multiple Architectures
 
    You can compile the package for more than one kind of computer at the
 same time, by placing the object files for each architecture in their
-own directory.  To do this, you can use GNU `make'.  `cd' to the
+own directory.  To do this, you can use GNU 'make'.  'cd' to the
 directory where you want the object files and executables to go and run
-the `configure' script.  `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.  This
-is known as a "VPATH" build.
+the 'configure' script.  'configure' automatically checks for the source
+code in the directory that 'configure' is in and in '..'.  This is known
+as a "VPATH" build.
 
-   With a non-GNU `make', it is safer to compile the package for one
+   With a non-GNU 'make', it is safer to compile the package for one
 architecture at a time in the source code directory.  After you have
-installed the package for one architecture, use `make distclean' before
+installed the package for one architecture, use 'make distclean' before
 reconfiguring for another architecture.
 
    On MacOS X 10.5 and later systems, you can create libraries and
 executables that work on multiple system types--known as "fat" or
-"universal" binaries--by specifying multiple `-arch' options to the
-compiler but only a single `-arch' option to the preprocessor.  Like
+"universal" binaries--by specifying multiple '-arch' options to the
+compiler but only a single '-arch' option to the preprocessor.  Like
 this:
 
      ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
@@ -136,105 +135,104 @@ this:
 
    This is not guaranteed to produce working output in all cases, you
 may have to build one architecture at a time and combine the results
-using the `lipo' tool if you have problems.
+using the 'lipo' tool if you have problems.
 
 Installation Names
 ==================
 
-   By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc.  You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX', where PREFIX must be an
+   By default, 'make install' installs the package's commands under
+'/usr/local/bin', include files under '/usr/local/include', etc.  You
+can specify an installation prefix other than '/usr/local' by giving
+'configure' the option '--prefix=PREFIX', where PREFIX must be an
 absolute file name.
 
    You can specify separate installation prefixes for
 architecture-specific files and architecture-independent files.  If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
 PREFIX as the prefix for installing programs and libraries.
 Documentation and other data files still use the regular prefix.
 
    In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files.  Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.  In general, the
-default for these options is expressed in terms of `${prefix}', so that
-specifying just `--prefix' will affect all of the other directory
+options like '--bindir=DIR' to specify different values for particular
+kinds of files.  Run 'configure --help' for a list of the directories
+you can set and what kinds of files go in them.  In general, the default
+for these options is expressed in terms of '${prefix}', so that
+specifying just '--prefix' will affect all of the other directory
 specifications that were not explicitly provided.
 
    The most portable way to affect installation locations is to pass the
-correct locations to `configure'; however, many packages provide one or
+correct locations to 'configure'; however, many packages provide one or
 both of the following shortcuts of passing variable assignments to the
-`make install' command line to change installation locations without
+'make install' command line to change installation locations without
 having to reconfigure or recompile.
 
    The first method involves providing an override variable for each
-affected directory.  For example, `make install
+affected directory.  For example, 'make install
 prefix=/alternate/directory' will choose an alternate location for all
 directory configuration variables that were expressed in terms of
-`${prefix}'.  Any directories that were specified during `configure',
-but not in terms of `${prefix}', must each be overridden at install
-time for the entire installation to be relocated.  The approach of
-makefile variable overrides for each directory variable is required by
-the GNU Coding Standards, and ideally causes no recompilation.
-However, some platforms have known limitations with the semantics of
-shared libraries that end up requiring recompilation when using this
-method, particularly noticeable in packages that use GNU Libtool.
-
-   The second method involves providing the `DESTDIR' variable.  For
-example, `make install DESTDIR=/alternate/directory' will prepend
-`/alternate/directory' before all installation names.  The approach of
-`DESTDIR' overrides is not required by the GNU Coding Standards, and
+'${prefix}'.  Any directories that were specified during 'configure',
+but not in terms of '${prefix}', must each be overridden at install time
+for the entire installation to be relocated.  The approach of makefile
+variable overrides for each directory variable is required by the GNU
+Coding Standards, and ideally causes no recompilation.  However, some
+platforms have known limitations with the semantics of shared libraries
+that end up requiring recompilation when using this method, particularly
+noticeable in packages that use GNU Libtool.
+
+   The second method involves providing the 'DESTDIR' variable.  For
+example, 'make install DESTDIR=/alternate/directory' will prepend
+'/alternate/directory' before all installation names.  The approach of
+'DESTDIR' overrides is not required by the GNU Coding Standards, and
 does not work on platforms that have drive letters.  On the other hand,
 it does better at avoiding recompilation issues, and works well even
-when some directory options were not specified in terms of `${prefix}'
-at `configure' time.
+when some directory options were not specified in terms of '${prefix}'
+at 'configure' time.
 
 Optional Features
 =================
 
    If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-
-   Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System).  The
-`README' should mention any `--enable-' and `--with-' options that the
+with an extra prefix or suffix on their names by giving 'configure' the
+option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
+
+   Some packages pay attention to '--enable-FEATURE' options to
+'configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to '--with-PACKAGE' options, where PACKAGE
+is something like 'gnu-as' or 'x' (for the X Window System).  The
+'README' should mention any '--enable-' and '--with-' options that the
 package recognizes.
 
-   For packages that use the X Window System, `configure' can usually
+   For packages that use the X Window System, 'configure' can usually
 find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
+you can use the 'configure' options '--x-includes=DIR' and
+'--x-libraries=DIR' to specify their locations.
 
    Some packages offer the ability to configure how verbose the
-execution of `make' will be.  For these packages, running `./configure
+execution of 'make' will be.  For these packages, running './configure
 --enable-silent-rules' sets the default to minimal output, which can be
-overridden with `make V=1'; while running `./configure
+overridden with 'make V=1'; while running './configure
 --disable-silent-rules' sets the default to verbose, which can be
-overridden with `make V=0'.
+overridden with 'make V=0'.
 
 Particular systems
 ==================
 
-   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
-CC is not installed, it is recommended to use the following options in
+   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU CC
+is not installed, it is recommended to use the following options in
 order to use an ANSI C compiler:
 
      ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
 
 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
 
-   HP-UX `make' updates targets which have the same time stamps as
-their prerequisites, which makes it generally unusable when shipped
-generated files such as `configure' are involved.  Use GNU `make'
-instead.
+   HP-UX 'make' updates targets which have the same time stamps as their
+prerequisites, which makes it generally unusable when shipped generated
+files such as 'configure' are involved.  Use GNU 'make' instead.
 
    On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
-parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
-a workaround.  If GNU CC is not installed, it is therefore recommended
-to try
+parse its '<wchar.h>' header file.  The option '-nodtk' can be used as a
+workaround.  If GNU CC is not installed, it is therefore recommended to
+try
 
      ./configure CC="cc"
 
@@ -242,26 +240,26 @@ and if that doesn't work, try
 
      ./configure CC="cc -nodtk"
 
-   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
+   On Solaris, don't put '/usr/ucb' early in your 'PATH'.  This
 directory contains several dysfunctional programs; working variants of
-these programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
-in your `PATH', put it _after_ `/usr/bin'.
+these programs are available in '/usr/bin'.  So, if you need '/usr/ucb'
+in your 'PATH', put it _after_ '/usr/bin'.
 
-   On Haiku, software installed for all users goes in `/boot/common',
-not `/usr/local'.  It is recommended to use the following options:
+   On Haiku, software installed for all users goes in '/boot/common',
+not '/usr/local'.  It is recommended to use the following options:
 
      ./configure --prefix=/boot/common
 
 Specifying the System Type
 ==========================
 
-   There may be some features `configure' cannot figure out
+   There may be some features 'configure' cannot figure out
 automatically, but needs to determine by the type of machine the package
 will run on.  Usually, assuming the package is built to be run on the
-_same_ architectures, `configure' can figure that out, but if it prints
+_same_ architectures, 'configure' can figure that out, but if it prints
 a message saying it cannot guess the machine type, give it the
-`--build=TYPE' option.  TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
+'--build=TYPE' option.  TYPE can either be a short name for the system
+type, such as 'sun4', or a canonical name which has the form:
 
      CPU-COMPANY-SYSTEM
 
@@ -270,101 +268,101 @@ where SYSTEM can have one of these forms:
      OS
      KERNEL-OS
 
-   See the file `config.sub' for the possible values of each field.  If
-`config.sub' isn't included in this package, then this package doesn't
+   See the file 'config.sub' for the possible values of each field.  If
+'config.sub' isn't included in this package, then this package doesn't
 need to know the machine type.
 
    If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
+use the option '--target=TYPE' to select the type of system they will
 produce code for.
 
    If you want to _use_ a cross compiler, that generates code for a
 platform different from the build platform, you should specify the
 "host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
+eventually be run) with '--host=TYPE'.
 
 Sharing Defaults
 ================
 
-   If you want to set default values for `configure' scripts to share,
-you can create a site shell script called `config.site' that gives
-default values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists.  Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
+   If you want to set default values for 'configure' scripts to share,
+you can create a site shell script called 'config.site' that gives
+default values for variables like 'CC', 'cache_file', and 'prefix'.
+'configure' looks for 'PREFIX/share/config.site' if it exists, then
+'PREFIX/etc/config.site' if it exists.  Or, you can set the
+'CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all 'configure' scripts look for a site script.
 
 Defining Variables
 ==================
 
    Variables not defined in a site shell script can be set in the
-environment passed to `configure'.  However, some packages may run
+environment passed to 'configure'.  However, some packages may run
 configure again during the build, and the customized values of these
 variables may be lost.  In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'.  For example:
+them in the 'configure' command line, using 'VAR=value'.  For example:
 
      ./configure CC=/usr/local2/bin/gcc
 
-causes the specified `gcc' to be used as the C compiler (unless it is
+causes the specified 'gcc' to be used as the C compiler (unless it is
 overridden in the site shell script).
 
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf limitation.  Until the limitation is lifted, you can use
-this workaround:
+Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
+Autoconf limitation.  Until the limitation is lifted, you can use this
+workaround:
 
      CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
 
-`configure' Invocation
+'configure' Invocation
 ======================
 
-   `configure' recognizes the following options to control how it
+   'configure' recognizes the following options to control how it
 operates.
 
-`--help'
-`-h'
-     Print a summary of all of the options to `configure', and exit.
+'--help'
+'-h'
+     Print a summary of all of the options to 'configure', and exit.
 
-`--help=short'
-`--help=recursive'
+'--help=short'
+'--help=recursive'
      Print a summary of the options unique to this package's
-     `configure', and exit.  The `short' variant lists options used
-     only in the top level, while the `recursive' variant lists options
-     also present in any nested packages.
+     'configure', and exit.  The 'short' variant lists options used only
+     in the top level, while the 'recursive' variant lists options also
+     present in any nested packages.
 
-`--version'
-`-V'
-     Print the version of Autoconf used to generate the `configure'
+'--version'
+'-V'
+     Print the version of Autoconf used to generate the 'configure'
      script, and exit.
 
-`--cache-file=FILE'
+'--cache-file=FILE'
      Enable the cache: use and save the results of the tests in FILE,
-     traditionally `config.cache'.  FILE defaults to `/dev/null' to
+     traditionally 'config.cache'.  FILE defaults to '/dev/null' to
      disable caching.
 
-`--config-cache'
-`-C'
-     Alias for `--cache-file=config.cache'.
+'--config-cache'
+'-C'
+     Alias for '--cache-file=config.cache'.
 
-`--quiet'
-`--silent'
-`-q'
+'--quiet'
+'--silent'
+'-q'
      Do not print messages saying which checks are being made.  To
-     suppress all normal output, redirect it to `/dev/null' (any error
+     suppress all normal output, redirect it to '/dev/null' (any error
      messages will still be shown).
 
-`--srcdir=DIR'
+'--srcdir=DIR'
      Look for the package's source code in directory DIR.  Usually
-     `configure' can determine that directory automatically.
+     'configure' can determine that directory automatically.
 
-`--prefix=DIR'
-     Use DIR as the installation prefix.  *note Installation Names::
-     for more details, including other options available for fine-tuning
-     the installation locations.
+'--prefix=DIR'
+     Use DIR as the installation prefix.  *note Installation Names:: for
+     more details, including other options available for fine-tuning the
+     installation locations.
 
-`--no-create'
-`-n'
+'--no-create'
+'-n'
      Run the configure checks, but stop before creating any output
      files.
 
-`configure' also accepts some other, not widely useful, options.  Run
-`configure --help' for more details.
+'configure' also accepts some other, not widely useful, options.  Run
+'configure --help' for more details.
diff --git a/Makefile.am b/Makefile.am
index e7527ab..240c107 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -163,6 +163,7 @@ noinst_PROGRAMS += \
 # This is the list of routines we decide is OK to steal from the C library.
 clib_routines := htonl htons ntohl ntohs                       \
                 udivdi3 __udivdi3 __udivmoddi4 __umoddi3       \
+                __divdi3                                       \
                 __rel_iplt_start __rel_iplt_end                \
                 __ffsdi2                                       \
                 _START _start etext _edata end _end # actually ld magic, not 
libc.
diff --git a/Makefile.in b/Makefile.in
index 165515e..ef668c0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -2925,6 +2925,7 @@ gnumach_o_LINK = $(LD) $(LDFLAGS) -u _start -r -o $@
 # This is the list of routines we decide is OK to steal from the C library.
 clib_routines := htonl htons ntohl ntohs                       \
                 udivdi3 __udivdi3 __udivmoddi4 __umoddi3       \
+                __divdi3                                       \
                 __rel_iplt_start __rel_iplt_end                \
                 __ffsdi2                                       \
                 _START _start etext _edata end _end # actually ld magic, not 
libc.
@@ -7408,7 +7409,7 @@ distdir: $(DISTFILES)
          ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
        || chmod -R a+r "$(distdir)"
 dist-gzip: distdir
-       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c 
>$(distdir).tar.gz
+       tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c 
>$(distdir).tar.gz
        $(am__post_remove_distdir)
 dist-bzip2: distdir
        tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c 
>$(distdir).tar.bz2
@@ -7433,7 +7434,7 @@ dist-shar: distdir
        @echo WARNING: "Support for shar distribution archives is" \
                       "deprecated." >&2
        @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
-       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+       shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
        $(am__post_remove_distdir)
 
 dist-zip: distdir
@@ -7451,7 +7452,7 @@ dist dist-all:
 distcheck: dist
        case '$(DIST_ARCHIVES)' in \
        *.tar.gz*) \
-         GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
+         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
        *.tar.bz2*) \
          bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
        *.tar.lz*) \
@@ -7461,7 +7462,7 @@ distcheck: dist
        *.tar.Z*) \
          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
        *.shar.gz*) \
-         GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
+         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
        *.zip*) \
          unzip $(distdir).zip ;;\
        esac
diff --git a/aclocal.m4 b/aclocal.m4
index f3cdf4c..d6a5b9b 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,6 +1,6 @@
-# generated automatically by aclocal 1.15 -*- Autoconf -*-
+# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
 
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,7 @@ You have another version of autoconf.  It may work, but is 
not guaranteed to.
 If you have problems, you may need to regenerate the build system entirely.
 To do so, use the procedure documented by the package, typically 
'autoreconf'.])])
 
-# Copyright (C) 2002-2014 Free Software Foundation, Inc.
+# Copyright (C) 2002-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
 [am__api_version='1.15'
 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 dnl require some minimum version.  Point them to the right macro.
-m4_if([$1], [1.15], [],
+m4_if([$1], [1.15.1], [],
       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 ])
 
@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.15])dnl
+[AM_AUTOMAKE_VERSION([1.15.1])dnl
 m4_ifndef([AC_AUTOCONF_VERSION],
   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
 # Figure out how to run the assembler.                      -*- Autoconf -*-
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -78,7 +78,7 @@ _AM_IF_OPTION([no-dependencies],, 
[_AM_DEPENDENCIES([CCAS])])dnl
 
 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -130,7 +130,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
 
 # AM_CONDITIONAL                                            -*- Autoconf -*-
 
-# Copyright (C) 1997-2014 Free Software Foundation, Inc.
+# Copyright (C) 1997-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -161,7 +161,7 @@ AC_CONFIG_COMMANDS_PRE(
 Usually this means the macro was only invoked conditionally.]])
 fi])])
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -352,7 +352,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
 
 # Generate code to set up dependency tracking.              -*- Autoconf -*-
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -428,7 +428,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
 # Do all the work for Automake.                             -*- Autoconf -*-
 
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -625,7 +625,7 @@ for _am_header in $config_headers :; do
 done
 echo "timestamp for $_am_arg" 
>`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -646,7 +646,7 @@ if test x"${install_sh+set}" != xset; then
 fi
 AC_SUBST([install_sh])])
 
-# Copyright (C) 2003-2014 Free Software Foundation, Inc.
+# Copyright (C) 2003-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -667,7 +667,7 @@ AC_SUBST([am__leading_dot])])
 
 # Check to see how 'make' treats includes.                 -*- Autoconf -*-
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -717,7 +717,7 @@ rm -f confinc confmf
 
 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
-# Copyright (C) 1997-2014 Free Software Foundation, Inc.
+# Copyright (C) 1997-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -756,7 +756,7 @@ fi
 
 # Helper functions for option handling.                     -*- Autoconf -*-
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -785,7 +785,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
 AC_DEFUN([_AM_IF_OPTION],
 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -832,7 +832,7 @@ AC_LANG_POP([C])])
 # For backward compatibility.
 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -851,7 +851,7 @@ AC_DEFUN([AM_RUN_LOG],
 
 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -932,7 +932,7 @@ AC_CONFIG_COMMANDS_PRE(
 rm -f conftest.file
 ])
 
-# Copyright (C) 2009-2014 Free Software Foundation, Inc.
+# Copyright (C) 2009-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -992,7 +992,7 @@ AC_SUBST([AM_BACKSLASH])dnl
 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 ])
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -1020,7 +1020,7 @@ fi
 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
-# Copyright (C) 2006-2014 Free Software Foundation, Inc.
+# Copyright (C) 2006-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -1039,7 +1039,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
 # Check how to create a tarball.                            -*- Autoconf -*-
 
-# Copyright (C) 2004-2014 Free Software Foundation, Inc.
+# Copyright (C) 2004-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
diff --git a/build-aux/config.guess b/build-aux/config.guess
index 0967f2a..2e9ad7f 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -2,7 +2,7 @@
 # Attempt to guess a canonical system name.
 #   Copyright 1992-2016 Free Software Foundation, Inc.
 
-timestamp='2016-04-02'
+timestamp='2016-10-02'
 
 # 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
@@ -186,9 +186,12 @@ case 
"${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
        esac
        # The Operating System including object format, if it has switched
-       # to ELF recently, or will in the future.
+       # to ELF recently (or will in the future) and ABI.
        case "${UNAME_MACHINE_ARCH}" in
-           arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
+           earm*)
+               os=netbsdelf
+               ;;
+           arm*|i386|m68k|ns32k|sh3*|sparc|vax)
                eval $set_cc_for_build
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
                        | grep -q __ELF__
@@ -997,6 +1000,9 @@ EOF
        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
        ;;
+    mips64el:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
     openrisc*:Linux:*:*)
        echo or1k-unknown-linux-${LIBC}
        exit ;;
@@ -1029,6 +1035,9 @@ EOF
     ppcle:Linux:*:*)
        echo powerpcle-unknown-linux-${LIBC}
        exit ;;
+    riscv32:Linux:*:* | riscv64:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
     s390:Linux:*:* | s390x:Linux:*:*)
        echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
        exit ;;
@@ -1408,18 +1417,17 @@ esac
 cat >&2 <<EOF
 $0: unable to guess system type
 
-This script, last modified $timestamp, has failed to recognize
-the operating system you are using. It is advised that you
-download the most up to date version of the config scripts from
+This script (version $timestamp), has failed to recognize the
+operating system you are using. If your script is old, overwrite
+config.guess and config.sub with the latest versions from:
 
   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
 and
   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
 
-If the version you run ($0) is already up to date, please
-send the following data and any information you think might be
-pertinent to <address@hidden> in order to provide the needed
-information to handle your system.
+If $0 has already been updated, send the following data and any
+information you think might be pertinent to address@hidden to
+provide the necessary information to handle your system.
 
 config.guess timestamp = $timestamp
 
diff --git a/build-aux/config.sub b/build-aux/config.sub
index 8d39c4b..dd2ca93 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -2,7 +2,7 @@
 # Configuration validation subroutine script.
 #   Copyright 1992-2016 Free Software Foundation, Inc.
 
-timestamp='2016-03-30'
+timestamp='2016-11-04'
 
 # 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
@@ -117,7 +117,7 @@ case $maybe_os in
   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
   linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | 
kfreebsd*-gnu* | \
   knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
-  kopensolaris*-gnu* | \
+  kopensolaris*-gnu* | cloudabi*-eabi* | \
   storm-chaos* | os2-emx* | rtmk-nova*)
     os=-$maybe_os
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
@@ -301,6 +301,7 @@ case $basic_machine in
        | open8 | or1k | or1knd | or32 \
        | pdp10 | pdp11 | pj | pjl \
        | powerpc | powerpc64 | powerpc64le | powerpcle \
+       | pru \
        | pyramid \
        | riscv32 | riscv64 \
        | rl78 | rx \
@@ -428,6 +429,7 @@ case $basic_machine in
        | orion-* \
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
+       | pru-* \
        | pyramid-* \
        | riscv32-* | riscv64-* \
        | rl78-* | romp-* | rs6000-* | rx-* \
@@ -643,6 +645,14 @@ case $basic_machine in
                basic_machine=m68k-bull
                os=-sysv3
                ;;
+       e500v[12])
+               basic_machine=powerpc-unknown
+               os=$os"spe"
+               ;;
+       e500v[12]-*)
+               basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+               os=$os"spe"
+               ;;
        ebmon29k)
                basic_machine=a29k-amd
                os=-ebmon
@@ -1022,7 +1032,7 @@ case $basic_machine in
        ppc-* | ppcbe-*)
                basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
                ;;
-       ppcle | powerpclittle | ppc-le | powerpc-little)
+       ppcle | powerpclittle)
                basic_machine=powerpcle-unknown
                ;;
        ppcle-* | powerpclittle-*)
@@ -1032,7 +1042,7 @@ case $basic_machine in
                ;;
        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 
's/^[^-]*-//'`
                ;;
-       ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+       ppc64le | powerpc64little)
                basic_machine=powerpc64le-unknown
                ;;
        ppc64le-* | powerpc64little-*)
@@ -1389,7 +1399,7 @@ case $os in
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
              | -chorusos* | -chorusrdb* | -cegcc* \
              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* 
\
-             | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+             | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | 
-linux-android* \
              | -linux-newlib* | -linux-musl* | -linux-uclibc* \
              | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
@@ -1399,7 +1409,7 @@ case $os in
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
-             | -onefs* | -tirtos*)
+             | -onefs* | -tirtos* | -phoenix* | -fuchsia*)
        # Remember, each alternative MUST END IN *, to match a version number.
                ;;
        -qnx*)
diff --git a/build-aux/depcomp b/build-aux/depcomp
index fc98710..b39f98f 100755
--- a/build-aux/depcomp
+++ b/build-aux/depcomp
@@ -1,9 +1,9 @@
 #! /bin/sh
 # depcomp - compile a program generating dependencies as side-effects
 
-scriptversion=2013-05-30.07; # UTC
+scriptversion=2016-01-11.22; # UTC
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2017 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -786,6 +786,6 @@ exit 0
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
 # time-stamp-end: "; # UTC"
 # End:
diff --git a/configure b/configure
index 7ff9489..f15f770 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for GNU Mach 1.8+git20170609.
+# Generated by GNU Autoconf 2.69 for GNU Mach 1.8+git20170911.
 #
 # Report bugs to <address@hidden>.
 #
@@ -579,8 +579,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='GNU Mach'
 PACKAGE_TARNAME='gnumach'
-PACKAGE_VERSION='1.8+git20170609'
-PACKAGE_STRING='GNU Mach 1.8+git20170609'
+PACKAGE_VERSION='1.8+git20170911'
+PACKAGE_STRING='GNU Mach 1.8+git20170911'
 PACKAGE_BUGREPORT='address@hidden'
 PACKAGE_URL=''
 
@@ -1599,7 +1599,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures GNU Mach 1.8+git20170609 to adapt to many kinds of 
systems.
+\`configure' configures GNU Mach 1.8+git20170911 to adapt to many kinds of 
systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1670,7 +1670,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of GNU Mach 1.8+git20170609:";;
+     short | recursive ) echo "Configuration of GNU Mach 1.8+git20170911:";;
    esac
   cat <<\_ACEOF
 
@@ -2026,7 +2026,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-GNU Mach configure 1.8+git20170609
+GNU Mach configure 1.8+git20170911
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2118,7 +2118,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by GNU Mach $as_me 1.8+git20170609, which was
+It was created by GNU Mach $as_me 1.8+git20170911, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2984,7 +2984,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='gnumach'
- VERSION='1.8+git20170609'
+ VERSION='1.8+git20170911'
 
 
 # Some tools Automake needs.
@@ -12189,7 +12189,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by GNU Mach $as_me 1.8+git20170609, which was
+This file was extended by GNU Mach $as_me 1.8+git20170911, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -12260,7 +12260,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-GNU Mach config.status 1.8+git20170609
+GNU Mach config.status 1.8+git20170911
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff --git a/ddb/db_access.c b/ddb/db_access.c
index 16d4d3e..509c1ba 100644
--- a/ddb/db_access.c
+++ b/ddb/db_access.c
@@ -72,7 +72,8 @@ db_get_task_value(
        db_expr_t       value;
        int             i;
 
-       db_read_bytes(addr, size, data, task);
+       if (!db_read_bytes(addr, size, data, task))
+           return 0;
 
        value = 0;
 #if    BYTE_MSF
diff --git a/ddb/db_command.c b/ddb/db_command.c
index 721f04f..11bca7a 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -332,6 +332,23 @@ struct db_command db_show_cmds[] = {
        { (char *)0, }
 };
 
+void
+db_debug_all_traps_cmd(db_expr_t addr,
+               int have_addr,
+               db_expr_t count,
+               const char *modif);
+void
+db_debug_port_references_cmd(db_expr_t addr,
+                        int have_addr,
+                        db_expr_t count,
+                        const char *modif);
+
+struct db_command db_debug_cmds[] = {
+       { "traps",              db_debug_all_traps_cmd,         0,      0 },
+       { "references",         db_debug_port_references_cmd,   0,      0 },
+       { (char *)0, }
+};
+
 struct db_command db_command_table[] = {
 #ifdef DB_MACHINE_COMMANDS
   /* this must be the first entry, if it exists */
@@ -364,6 +381,7 @@ struct db_command db_command_table[] = {
        { "macro",      db_def_macro_cmd,       CS_OWN,         0 },
        { "dmacro",     db_del_macro_cmd,       CS_OWN,         0 },
        { "show",       0,                      0,      db_show_cmds },
+       { "debug",      0,                      0,      db_debug_cmds },
        { "reset",      db_reset_cpu,           0,              0 },
        { "reboot",     db_reset_cpu,           0,              0 },
        { "halt",       db_halt_cpu,            0,              0 },
@@ -538,4 +556,32 @@ db_option(modif, option)
        return(FALSE);
 }
 
+void
+db_debug_all_traps_cmd(db_expr_t addr,
+                      int have_addr,
+                      db_expr_t count,
+                      const char *modif)
+{
+  if (strcmp (modif, "on") == 0)
+    db_debug_all_traps (TRUE);
+  else if (strcmp (modif, "off") == 0)
+    db_debug_all_traps (FALSE);
+  else
+    db_error ("debug traps /on|/off\n");
+}
+
+void
+db_debug_port_references_cmd(db_expr_t addr,
+                            int have_addr,
+                            db_expr_t count,
+                            const char *modif)
+{
+  if (strcmp (modif, "on") == 0)
+    db_debug_port_references (TRUE);
+  else if (strcmp (modif, "off") == 0)
+    db_debug_port_references (FALSE);
+  else
+    db_error ("debug references /on|/off\n");
+}
+
 #endif /* MACH_KDB */
diff --git a/ddb/db_examine.c b/ddb/db_examine.c
index 836b0e8..6f94b68 100644
--- a/ddb/db_examine.c
+++ b/ddb/db_examine.c
@@ -473,7 +473,10 @@ db_xcdump(
                if (!DB_CHECK_ACCESS(next_page_addr, sizeof(int), task))
                    bcount = next_page_addr - addr;
            }
-           db_read_bytes(addr, bcount, data, task);
+           if (!db_read_bytes(addr, bcount, data, task)) {
+               db_printf("*\n");
+               continue;
+           }
            for (i = 0; i < bcount && off != 0; i += size) {
                if (i % 4 == 0)
                        db_printf(" ");
diff --git a/ddb/db_print.c b/ddb/db_print.c
index fb4efaa..832faf5 100644
--- a/ddb/db_print.c
+++ b/ddb/db_print.c
@@ -34,6 +34,7 @@
  * Miscellaneous printing.
  */
 #include <string.h>
+#include <mach/policy.h>
 #include <mach/port.h>
 #include <kern/task.h>
 #include <kern/thread.h>
@@ -112,6 +113,7 @@ db_show_regs(
 
 #define OPTION_LONG            0x001           /* long print option */
 #define OPTION_USER            0x002           /* print ps-like stuff */
+#define OPTION_SCHED           0x004           /* print scheduling info */
 #define OPTION_INDENT          0x100           /* print with indent */
 #define OPTION_THREAD_TITLE    0x200           /* print thread title */
 #define OPTION_TASK_TITLE      0x400           /* print thread title */
@@ -152,10 +154,10 @@ db_print_thread(
        if (flag & OPTION_USER) {
            char status[8];
            char *indent = "";
+           if (flag & OPTION_INDENT)
+             indent = "    ";
 
            if (flag & OPTION_LONG) {
-               if (flag & OPTION_INDENT)
-                   indent = "    ";
                if (flag & OPTION_THREAD_TITLE) {
                    db_printf("%s ID: THREAD   STAT   STACK    PCB", indent);
                    db_printf("      SUS PRI CONTINUE,WAIT_FUNC\n");
@@ -177,6 +179,33 @@ db_print_thread(
                    db_task_printsym((db_addr_t)thread->wait_event,
                                     DB_STGY_ANY, kernel_task);
                db_printf("\n");
+           } else if (flag & OPTION_SCHED) {
+               if (flag & OPTION_THREAD_TITLE) {
+                   db_printf("%s     "
+                             "STAT    PRIORITY            POLICY   USAGE       
          LAST\n",
+                             indent);
+                   db_printf("%s ID: "
+                             "RWSONF  SET  MAX COMP DEPR  P DATA   CPU        
SCHED      UPDATED\n",
+                             indent);
+                   db_printf(" \n");
+               }
+               db_printf("%s%3d%c %s %4d %4d %4d %4d  %c %4d  %10d %10d 
%10d\n",
+                         indent, thread_id,
+                         (thread == current_thread())? '#': ':',
+                         db_thread_stat(thread, status),
+                         thread->priority,
+                         thread->max_priority,
+                         thread->sched_pri,
+                         thread->depress_priority,
+#if    MACH_FIXPRI
+                         thread->policy == POLICY_TIMESHARE ? 'T' : 'F',
+                         thread->sched_data,
+#else  /* MACH_FIXPRI */
+                         'T', 0,
+#endif /* MACH_FIXPRI */
+                         thread->cpu_usage,
+                         thread->sched_usage,
+                         thread->sched_stamp);
            } else {
                if (thread_id % 3 == 0) {
                    if (flag & OPTION_INDENT)
@@ -228,7 +257,7 @@ db_print_task(
            if (flag & OPTION_TASK_TITLE) {
                db_printf(" ID: TASK     MAP      THD SUS PR %s",
                          DB_TASK_NAME_TITLE);
-               if ((flag & OPTION_LONG) == 0)
+               if ((flag & (OPTION_LONG|OPTION_SCHED)) == 0)
                    db_printf("  THREADS");
                db_printf("\n");
            }
@@ -237,7 +266,7 @@ db_print_task(
                            2*sizeof(vm_offset_t), task->map, 
task->thread_count,
                            task->suspend_count, task->priority);
            DB_TASK_NAME(task);
-           if (flag & OPTION_LONG) {
+           if (flag & (OPTION_LONG|OPTION_SCHED)) {
                if (flag & OPTION_TASK_TITLE)
                    flag |= OPTION_THREAD_TITLE;
                db_printf("\n");
@@ -249,7 +278,7 @@ db_print_task(
                flag &= ~OPTION_THREAD_TITLE;
                thread_id++;
            }
-           if ((flag & OPTION_LONG) == 0)
+           if ((flag & (OPTION_LONG|OPTION_SCHED)) == 0)
                db_printf("\n");
        } else {
            if (flag & OPTION_TASK_TITLE)
@@ -318,6 +347,8 @@ db_show_all_threads(addr, have_addr, count, modif)
            flag |= OPTION_USER;
        if (db_option(modif, 'l'))
            flag |= OPTION_LONG;
+       if (db_option(modif, 's'))
+           flag |= OPTION_SCHED;
 
        task_id = 0;
        queue_iterate(&all_psets, pset, processor_set_t, all_psets) {
@@ -368,6 +399,8 @@ db_show_one_thread(addr, have_addr, count, modif)
            flag |= OPTION_USER;
        if (db_option(modif, 'l'))
            flag |= OPTION_LONG;
+       if (db_option(modif, 's'))
+           flag |= OPTION_SCHED;
 
        if (!have_addr) {
            thread = current_thread();
diff --git a/ddb/db_task_thread.c b/ddb/db_task_thread.c
index 7927e67..f7fbb80 100644
--- a/ddb/db_task_thread.c
+++ b/ddb/db_task_thread.c
@@ -303,4 +303,29 @@ db_get_task_thread(
        return;
 }
 
+/*
+ * convert $mapXXX type DDB variable to map address
+ */
+void
+db_get_map(struct db_variable *vp,
+          db_expr_t *valuep,
+          int flag,
+          db_var_aux_param_t ap)
+{
+  task_t task;
+
+  if (flag != DB_VAR_GET) {
+    db_error("Cannot set to $map variable\n");
+    /* NOTREACHED */
+  }
+
+  if ((task = db_lookup_task_id(ap->suffix[0])) == TASK_NULL) {
+    db_printf("no such map($map%d)\n", ap->suffix[0]);
+    db_error(0);
+    /* NOTREACHED */
+  }
+
+  *valuep = (db_expr_t) task->map;
+}
+
 #endif /* MACH_KDB */
diff --git a/ddb/db_task_thread.h b/ddb/db_task_thread.h
index cbb3680..55ab4f5 100644
--- a/ddb/db_task_thread.h
+++ b/ddb/db_task_thread.h
@@ -64,4 +64,10 @@ db_get_task_thread(
        int                     flag,
        db_var_aux_param_t      ap);
 
+extern void
+db_get_map(struct db_variable *vp,
+          db_expr_t *valuep,
+          int flag,
+          db_var_aux_param_t ap);
+
 #endif  /* _DDB_DB_TASK_THREAD_H_ */
diff --git a/ddb/db_variables.c b/ddb/db_variables.c
index 4442ccb..0fd9bad 100644
--- a/ddb/db_variables.c
+++ b/ddb/db_variables.c
@@ -61,6 +61,8 @@ struct db_variable db_vars[] = {
        { "thread",     0,                      db_set_default_thread   },
        { "task",       0,                      db_get_task_thread,
          1,            2,                      -1,     -1              },
+       { "map",        0,                      db_get_map,
+         1,            1,                      -1,     -1              },
        { "work",       &db_work[0],            FCN_NULL,
          1,            1,                      0,      DB_NWORK-1      },
        { "arg",        0,                      db_arg_variable,
diff --git a/doc/mach.info b/doc/mach.info
index 071e74a..42c279a 100644
--- a/doc/mach.info
+++ b/doc/mach.info
@@ -1,9 +1,9 @@
-This is mach.info, produced by makeinfo version 6.3 from mach.texi.
+This is mach.info, produced by makeinfo version 6.4.90 from mach.texi.
 
 This file documents the GNU Mach microkernel.
 
-   This is edition 0.4, last updated on 2 January 2017, of 'The GNU Mach
-Reference Manual', for version 1.8+git20170609.
+   This is edition 0.4, last updated on 16 August 2017, of 'The GNU Mach
+Reference Manual', for version 1.8+git20170911.
 
    Copyright (C) 2001, 2002, 2006, 2007, 2008 Free Software Foundation,
 Inc.
@@ -39,126 +39,126 @@ END-INFO-DIR-ENTRY
 
 
 Indirect:
-mach.info-1: 1640
-mach.info-2: 304532
+mach.info-1: 1643
+mach.info-2: 304538
 
 Tag Table:
 (Indirect)
-Node: Top1640
-Node: Introduction11278
-Node: Audience12109
-Node: Features13144
-Node: Overview14971
-Node: History16164
-Node: Installing16309
-Node: Binary Distributions17534
-Node: Compilation18342
-Node: Configuration19575
-Node: Cross-Compilation35986
-Node: Bootstrap36767
-Ref: Bootstrap-Footnote-137210
-Node: Bootloader37447
-Ref: Bootloader-Footnote-138727
-Node: Modules38813
-Node: Inter Process Communication39640
-Node: Major Concepts40263
-Node: Messaging Interface44068
-Node: Mach Message Call44798
-Node: Message Format48113
-Node: Exchanging Port Rights59305
-Ref: Exchanging Port Rights-Footnote-164867
-Node: Memory65039
-Ref: Memory-Footnote-168133
-Node: Message Send68475
-Ref: Message Send-Footnote-175497
-Node: Message Receive75780
-Ref: Message Receive-Footnote-185432
-Node: Atomicity85713
-Node: Port Manipulation Interface88487
-Node: Port Creation90042
-Node: Port Destruction94831
-Node: Port Names97974
-Node: Port Rights102221
-Node: Ports and other Tasks106010
-Node: Receive Rights110103
-Node: Port Sets117034
-Node: Request Notifications119437
-Node: Inherited Ports124241
-Node: Virtual Memory Interface127925
-Node: Memory Allocation129178
-Node: Memory Deallocation131703
-Node: Data Transfer133167
-Node: Memory Attributes136693
-Node: Mapping Memory Objects147793
-Node: Memory Statistics151085
-Node: External Memory Management152659
-Node: Memory Object Server153364
-Node: Memory Object Creation156045
-Node: Memory Object Termination160033
-Node: Memory Objects and Data162972
-Node: Memory Object Locking176877
-Node: Memory Object Attributes182741
-Node: Default Memory Manager186516
-Node: Threads and Tasks192198
-Node: Thread Interface192535
-Node: Thread Creation193531
-Node: Thread Termination194648
-Node: Thread Information195119
-Node: Thread Settings201218
-Node: Thread Execution202452
-Node: Scheduling209745
-Node: Thread Priority210100
-Node: Hand-Off Scheduling212734
-Node: Scheduling Policy217859
-Node: Thread Special Ports219191
-Node: Exceptions221637
-Node: Task Interface222507
-Node: Task Creation223519
-Node: Task Termination224854
-Node: Task Information225456
-Node: Task Execution232358
-Node: Task Special Ports236771
-Node: Syscall Emulation240625
-Node: Profiling241856
-Node: Host Interface245619
-Node: Host Ports246604
-Node: Host Information248677
-Node: Host Time254060
-Node: Host Reboot256727
-Node: Processors and Processor Sets257279
-Node: Processor Set Interface258257
-Node: Processor Set Ports259024
-Node: Processor Set Access259854
-Node: Processor Set Creation262114
-Node: Processor Set Destruction263141
-Node: Tasks and Threads on Sets264062
-Node: Processor Set Priority269229
-Node: Processor Set Policy270519
-Node: Processor Set Info272133
-Node: Processor Interface275946
-Node: Hosted Processors276671
-Node: Processor Control277662
-Node: Processors and Sets279128
-Node: Processor Info281006
-Node: Device Interface283748
-Node: Device Reply Server285363
-Node: Device Open286655
-Node: Device Close288778
-Node: Device Read289357
-Node: Device Write292276
-Node: Device Map295081
-Node: Device Status295972
-Node: Device Filter297145
-Node: Kernel Debugger304532
-Node: Operation305259
-Node: Commands308236
-Node: Variables322021
-Node: Expressions323409
-Node: Copying324758
-Node: Documentation License343987
-Node: GNU Free Documentation License344576
-Node: CMU License366975
-Node: Concept Index368210
-Node: Function and Data Index372056
+Node: Top1643
+Node: Introduction11281
+Node: Audience12112
+Node: Features13147
+Node: Overview14974
+Node: History16167
+Node: Installing16312
+Node: Binary Distributions17537
+Node: Compilation18345
+Node: Configuration19578
+Node: Cross-Compilation35989
+Node: Bootstrap36770
+Ref: Bootstrap-Footnote-137213
+Node: Bootloader37450
+Ref: Bootloader-Footnote-138730
+Node: Modules38816
+Node: Inter Process Communication39643
+Node: Major Concepts40266
+Node: Messaging Interface44071
+Node: Mach Message Call44801
+Node: Message Format48116
+Node: Exchanging Port Rights59308
+Ref: Exchanging Port Rights-Footnote-164870
+Node: Memory65042
+Ref: Memory-Footnote-168136
+Node: Message Send68478
+Ref: Message Send-Footnote-175500
+Node: Message Receive75783
+Ref: Message Receive-Footnote-185435
+Node: Atomicity85716
+Node: Port Manipulation Interface88490
+Node: Port Creation90045
+Node: Port Destruction94834
+Node: Port Names97977
+Node: Port Rights102224
+Node: Ports and other Tasks106013
+Node: Receive Rights110106
+Node: Port Sets117037
+Node: Request Notifications119440
+Node: Inherited Ports124244
+Node: Virtual Memory Interface127928
+Node: Memory Allocation129181
+Node: Memory Deallocation131706
+Node: Data Transfer133170
+Node: Memory Attributes136696
+Node: Mapping Memory Objects147796
+Node: Memory Statistics151088
+Node: External Memory Management152662
+Node: Memory Object Server153367
+Node: Memory Object Creation156048
+Node: Memory Object Termination160036
+Node: Memory Objects and Data162975
+Node: Memory Object Locking176880
+Node: Memory Object Attributes182744
+Node: Default Memory Manager186519
+Node: Threads and Tasks192201
+Node: Thread Interface192538
+Node: Thread Creation193534
+Node: Thread Termination194651
+Node: Thread Information195122
+Node: Thread Settings201221
+Node: Thread Execution202455
+Node: Scheduling209748
+Node: Thread Priority210103
+Node: Hand-Off Scheduling212737
+Node: Scheduling Policy217862
+Node: Thread Special Ports219194
+Node: Exceptions221640
+Node: Task Interface222510
+Node: Task Creation223522
+Node: Task Termination224857
+Node: Task Information225459
+Node: Task Execution232361
+Node: Task Special Ports236774
+Node: Syscall Emulation240628
+Node: Profiling241859
+Node: Host Interface245622
+Node: Host Ports246607
+Node: Host Information248680
+Node: Host Time254063
+Node: Host Reboot256730
+Node: Processors and Processor Sets257282
+Node: Processor Set Interface258260
+Node: Processor Set Ports259027
+Node: Processor Set Access259857
+Node: Processor Set Creation262117
+Node: Processor Set Destruction263144
+Node: Tasks and Threads on Sets264065
+Node: Processor Set Priority269232
+Node: Processor Set Policy270522
+Node: Processor Set Info272136
+Node: Processor Interface275949
+Node: Hosted Processors276674
+Node: Processor Control277665
+Node: Processors and Sets279131
+Node: Processor Info281009
+Node: Device Interface283751
+Node: Device Reply Server285366
+Node: Device Open286658
+Node: Device Close288781
+Node: Device Read289360
+Node: Device Write292279
+Node: Device Map295084
+Node: Device Status295975
+Node: Device Filter297148
+Node: Kernel Debugger304538
+Node: Operation305265
+Node: Commands308242
+Node: Variables322432
+Node: Expressions323969
+Node: Copying325318
+Node: Documentation License344547
+Node: GNU Free Documentation License345136
+Node: CMU License367535
+Node: Concept Index368770
+Node: Function and Data Index372616
 
 End Tag Table
diff --git a/doc/mach.info-1 b/doc/mach.info-1
index 15b960d..4a83677 100644
--- a/doc/mach.info-1
+++ b/doc/mach.info-1
@@ -1,9 +1,9 @@
-This is mach.info, produced by makeinfo version 6.3 from mach.texi.
+This is mach.info, produced by makeinfo version 6.4.90 from mach.texi.
 
 This file documents the GNU Mach microkernel.
 
-   This is edition 0.4, last updated on 2 January 2017, of 'The GNU Mach
-Reference Manual', for version 1.8+git20170609.
+   This is edition 0.4, last updated on 16 August 2017, of 'The GNU Mach
+Reference Manual', for version 1.8+git20170911.
 
    Copyright (C) 2001, 2002, 2006, 2007, 2008 Free Software Foundation,
 Inc.
@@ -45,8 +45,8 @@ Main Menu
 
 This file documents the GNU Mach microkernel.
 
-   This is edition 0.4, last updated on 2 January 2017, of 'The GNU Mach
-Reference Manual', for version 1.8+git20170609.
+   This is edition 0.4, last updated on 16 August 2017, of 'The GNU Mach
+Reference Manual', for version 1.8+git20170911.
 
    Copyright (C) 2001, 2002, 2006, 2007, 2008 Free Software Foundation,
 Inc.
diff --git a/doc/mach.info-2 b/doc/mach.info-2
index 8a3d0b9..482e436 100644
--- a/doc/mach.info-2
+++ b/doc/mach.info-2
@@ -1,9 +1,9 @@
-This is mach.info, produced by makeinfo version 6.3 from mach.texi.
+This is mach.info, produced by makeinfo version 6.4.90 from mach.texi.
 
 This file documents the GNU Mach microkernel.
 
-   This is edition 0.4, last updated on 2 January 2017, of 'The GNU Mach
-Reference Manual', for version 1.8+git20170609.
+   This is edition 0.4, last updated on 16 August 2017, of 'The GNU Mach
+Reference Manual', for version 1.8+git20170911.
 
    Copyright (C) 2001, 2002, 2006, 2007, 2008 Free Software Foundation,
 Inc.
@@ -390,7 +390,7 @@ File: mach.info,  Node: Commands,  Next: Variables,  Prev: 
Operation,  Up: Kerne
 'dmacro NAME'
      Delete the macro named NAME.
 
-'show all threads[/ul]'
+'show all threads[/uls]'
      Display all tasks and threads information.  This version of 'ddb'
      prints more information than previous one.  It shows UNIX process
      information like 'ps' for each task.  The UNIX process information
@@ -408,7 +408,12 @@ File: mach.info,  Node: Commands,  Next: Variables,  Prev: 
Operation,  Up: Kerne
      F(loating) point arithmetic used (if supported by the platform).
      If the corresponding status bit is off, '.' is printed instead.  If
      'l' option is specified, more detail information is printed for
-     each thread.
+     each thread.  If the 's' option is given, scheduling information is
+     displayed.
+
+'show all tasks'
+     Displays all tasks similar to 'show all threads', but omits
+     information about the individual threads.
 
 'show task [ ADDR ]'
      Display the information of a task specified by ADDR.  If ADDR is
@@ -474,6 +479,13 @@ File: mach.info,  Node: Commands,  Next: Variables,  Prev: 
Operation,  Up: Kerne
      you specify a wrong space address, the request is rejected with an
      error message.
 
+'debug traps /on|/off'
+     Enables or disables debugging of all traps with 'ddb'.
+
+'debug references /on|/off'
+     Enables or disables debugging of all port reference counting errors
+     with 'ddb'.
+
 
 File: mach.info,  Node: Variables,  Next: Expressions,  Prev: Commands,  Up: 
Kernel Debugger
 
@@ -494,6 +506,10 @@ thread instead of that of the current thread (e.g.  
'$eax:tu').
      identification numbers printed by a 'show all threads' command
      respectively.  This variable is read only.
 
+'mapXX'
+     VM map structure address.  XX is a task identification number
+     printed by a 'show all tasks' command.  This variable is read only.
+
 'thread'
      The default target thread.  The value is used when 't' option is
      specified without explicit thread structure address parameter in
diff --git a/doc/mach.texi b/doc/mach.texi
index 756731e..913e8bb 100644
--- a/doc/mach.texi
+++ b/doc/mach.texi
@@ -7039,7 +7039,7 @@ will print the contents of a list starting from 
@code{xxx_list} by each
 @item dmacro @var{name}
 Delete the macro named @var{name}.
 
address@hidden show all threads[/ul]
address@hidden show all threads[/uls]
 Display all tasks and threads information.  This version of @code{ddb}
 prints more information than previous one.  It shows UNIX process
 information like @command{ps} for each task.  The UNIX process
@@ -7056,7 +7056,12 @@ thread.  The status consists of 6 letters, R(run), 
W(wait), S(suspended),
 O(swapped out), N(interruptible), and F(loating) point arithmetic used (if
 supported by the platform). If the corresponding
 status bit is off, @code{.}  is printed instead.  If @code{l} option is
-specified, more detail information is printed for each thread.
+specified, more detail information is printed for each thread.  If the
address@hidden option is given, scheduling information is displayed.
+
address@hidden show all tasks
+Displays all tasks similar to @code{show all threads}, but omits
+information about the individual threads.
 
 @item show task [ @var{addr} ]
 Display the information of a task specified by @var{addr}.  If
@@ -7120,6 +7125,14 @@ If you want to clear a watch point in user space, 
specify @code{T} and
 parameter is omitted, a task of the default target thread or a current
 task is assumed.  If you specify a wrong space address, the request is
 rejected with an error message.
+
address@hidden debug traps /on|/off
+Enables or disables debugging of all traps with @code{ddb}.
+
address@hidden debug references /on|/off
+Enables or disables debugging of all port reference counting errors
+with @code{ddb}.
+
 @end table
 
 
@@ -7142,6 +7155,11 @@ Task or thread structure address.  @var{xx} and @var{yy} 
are task and
 thread identification numbers printed by a @code{show all threads}
 command respectively.  This variable is read only.
 
address@hidden address@hidden
+VM map structure address.  @var{xx} is a task identification number
+printed by a @code{show all tasks} command.  This variable is read
+only.
+
 @item thread
 The default target thread.  The value is used when @code{t} option is
 specified without explicit thread structure address parameter in command
diff --git a/doc/stamp-vti b/doc/stamp-vti
index d693eed..7a3b041 100644
--- a/doc/stamp-vti
+++ b/doc/stamp-vti
@@ -1,4 +1,4 @@
address@hidden UPDATED 2 January 2017
address@hidden UPDATED-MONTH January 2017
address@hidden EDITION 1.8+git20170609
address@hidden VERSION 1.8+git20170609
address@hidden UPDATED 16 August 2017
address@hidden UPDATED-MONTH August 2017
address@hidden EDITION 1.8+git20170911
address@hidden VERSION 1.8+git20170911
diff --git a/doc/version.texi b/doc/version.texi
index d693eed..7a3b041 100644
--- a/doc/version.texi
+++ b/doc/version.texi
@@ -1,4 +1,4 @@
address@hidden UPDATED 2 January 2017
address@hidden UPDATED-MONTH January 2017
address@hidden EDITION 1.8+git20170609
address@hidden VERSION 1.8+git20170609
address@hidden UPDATED 16 August 2017
address@hidden UPDATED-MONTH August 2017
address@hidden EDITION 1.8+git20170911
address@hidden VERSION 1.8+git20170911
diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c
index b3fac0b..aac2939 100644
--- a/i386/i386/db_interface.c
+++ b/i386/i386/db_interface.c
@@ -446,8 +446,6 @@ db_user_to_kernel_address(
            }
            if (flag) {
                db_printf("\nno memory is assigned to address %08x\n", addr);
-               db_error(0);
-               /* NOTREACHED */
            }
            return(-1);
        }
@@ -459,7 +457,7 @@ db_user_to_kernel_address(
  * Read bytes from kernel address space for debugger.
  */
 
-void
+boolean_t
 db_read_bytes(
        vm_offset_t     addr,
        int             size,
@@ -477,17 +475,16 @@ db_read_bytes(
            while (--size >= 0) {
                if (addr < VM_MIN_KERNEL_ADDRESS && task == TASK_NULL) {
                    db_printf("\nbad address %x\n", addr);
-                   db_error(0);
-                   /* NOTREACHED */
+                   return FALSE;
                }
                addr++;
                *data++ = *src++;
            }
-           return;
+           return TRUE;
        }
        while (size > 0) {
            if (db_user_to_kernel_address(task, addr, &kern_addr, 1) < 0)
-               return;
+               return FALSE;
            src = (char *)kern_addr;
            n = intel_trunc_page(addr+INTEL_PGBYTES) - addr;
            if (n > size)
@@ -497,6 +494,7 @@ db_read_bytes(
            while (--n >= 0)
                *data++ = *src++;
        }
+       return TRUE;
 }
 
 /*
diff --git a/i386/i386/db_interface.h b/i386/i386/db_interface.h
index 8d7daea..18ee329 100644
--- a/i386/i386/db_interface.h
+++ b/i386/i386/db_interface.h
@@ -32,7 +32,7 @@ extern boolean_t kdb_trap (
        int                     code,
        struct i386_saved_state *regs);
 
-extern void db_read_bytes (
+extern boolean_t db_read_bytes (
        vm_offset_t     addr,
        int             size,
        char            *data,
@@ -129,4 +129,6 @@ db_write_bytes_user_space(
        char            *data,
        task_t          task);
 
+void db_debug_all_traps (boolean_t enable);
+
 #endif /* _I386_DB_INTERFACE_H_ */
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index d4bdc7f..d3f6131 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -626,3 +626,13 @@ interrupted_pc(t)
        return iss->eip;
 }
 #endif /* MACH_PCSAMPLE > 0 */
+
+#if    MACH_KDB
+
+void
+db_debug_all_traps (boolean_t enable)
+{
+       debug_all_traps_with_kdb = enable;
+}
+
+#endif /* MACH_KDB */
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 505b206..2a53fb6 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -1370,7 +1370,7 @@ void pmap_reference(pmap_t p)
  *     Assumes that the pte-page exists.
  */
 
-/* static */
+static
 void pmap_remove_range(
        pmap_t                  pmap,
        vm_offset_t             va,
@@ -1533,7 +1533,6 @@ void pmap_remove(
        vm_offset_t     e)
 {
        int                     spl;
-       pt_entry_t              *pde;
        pt_entry_t              *spte, *epte;
        vm_offset_t             l;
        vm_offset_t             _s = s;
@@ -1543,8 +1542,9 @@ void pmap_remove(
 
        PMAP_READ_LOCK(map, spl);
 
-       pde = pmap_pde(map, s);
        while (s < e) {
+           pt_entry_t *pde = pmap_pde(map, s);
+
            l = (s + PDE_MAPPED_SIZE) & ~(PDE_MAPPED_SIZE-1);
            if (l > e)
                l = e;
@@ -1555,7 +1555,6 @@ void pmap_remove(
                pmap_remove_range(map, s, spte, epte);
            }
            s = l;
-           pde++;
        }
        PMAP_UPDATE_TLBS(map, _s, e);
 
@@ -1953,7 +1952,6 @@ Retry:
             * Enter the new page table page in the page directory.
             */
            i = ptes_per_vm_page;
-           /*XX pdp = &pmap->dirbase[pdenum(v) & ~(i-1)];*/
            pdp = pmap_pde(pmap, v);
            do {
 #ifdef MACH_PV_PAGETABLES
@@ -1970,7 +1968,7 @@ Retry:
                                                | INTEL_PTE_USER
                                                | INTEL_PTE_WRITE;
 #endif /* MACH_PV_PAGETABLES */
-               pdp++;
+               pdp++;  /* Note: This is safe b/c we stay in one page.  */
                ptp += INTEL_PGBYTES;
            } while (--i > 0);
 
diff --git a/i386/intel/pmap.h b/i386/intel/pmap.h
index ee600cd..5fa2a0c 100644
--- a/i386/intel/pmap.h
+++ b/i386/intel/pmap.h
@@ -461,12 +461,6 @@ extern void pmap_copy_page (phys_addr_t, phys_addr_t);
  */
 extern phys_addr_t kvtophys (vm_offset_t);
 
-void pmap_remove_range(
-       pmap_t                  pmap,
-       vm_offset_t             va,
-       pt_entry_t              *spte,
-       pt_entry_t              *epte);
-
 #if NCPUS > 1
 void signal_cpus(
        cpu_set         use_list,
diff --git a/ipc/mach_port.c b/ipc/mach_port.c
index 5cc3998..b30dcd6 100644
--- a/ipc/mach_port.c
+++ b/ipc/mach_port.c
@@ -1566,3 +1566,13 @@ mach_port_clear_protected_payload(
        ip_unlock(port);
        return KERN_SUCCESS;
 }
+
+#if    MACH_KDB
+
+void
+db_debug_port_references (boolean_t enable)
+{
+       mach_port_deallocate_debug = enable;
+}
+
+#endif /* MACH_KDB */
diff --git a/ipc/mach_port.h b/ipc/mach_port.h
index c4d9a1c..073f794 100644
--- a/ipc/mach_port.h
+++ b/ipc/mach_port.h
@@ -65,4 +65,8 @@ mach_port_get_receive_status(
        mach_port_t             name,
        mach_port_status_t      *statusp);
 
+#if    MACH_KDB
+void db_debug_port_references (boolean_t enable);
+#endif /* MACH_KDB */
+
 #endif /* _IPC_MACH_PORT_H_ */
diff --git a/kern/host.c b/kern/host.c
index 57280c4..3271b0c 100644
--- a/kern/host.c
+++ b/kern/host.c
@@ -154,7 +154,7 @@ kern_return_t       host_info(
            {
                host_sched_info_t       sched_info;
                extern int      min_quantum;
-                                       /* minimum quantum, in microseconds */
+                                       /* minimum quantum, in ticks */
 
                /*
                 *      Return scheduler information.
@@ -165,8 +165,9 @@ kern_return_t       host_info(
                sched_info = (host_sched_info_t) info;
 
                sched_info->min_timeout = tick / 1000;
-               sched_info->min_quantum = min_quantum / 1000;
                                /* convert microseconds to milliseconds */
+               sched_info->min_quantum = min_quantum * tick / 1000;
+                               /* convert ticks to milliseconds */
 
                *count = HOST_SCHED_INFO_COUNT;
                return KERN_SUCCESS;
diff --git a/version.m4 b/version.m4
index 87b79ea..0028b4b 100644
--- a/version.m4
+++ b/version.m4
@@ -1,4 +1,4 @@
 m4_define([AC_PACKAGE_NAME],[GNU Mach])
-m4_define([AC_PACKAGE_VERSION],[1.8+git20170609])
+m4_define([AC_PACKAGE_VERSION],[1.8+git20170911])
 m4_define([AC_PACKAGE_BUGREPORT],address@hidden)
 m4_define([AC_PACKAGE_TARNAME],[gnumach])
diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index 99381ef..4d1d90a 100644
--- a/vm/vm_fault.c
+++ b/vm/vm_fault.c
@@ -651,7 +651,7 @@ vm_fault_return_t vm_fault_page(
                                object->pager_request,
                                m->offset + object->paging_offset,
                                PAGE_SIZE, access_required)) != KERN_SUCCESS) {
-                               if (rc != MACH_SEND_INTERRUPTED)
+                               if (object->pager && rc != 
MACH_SEND_INTERRUPTED)
                                        printf("%s(0x%p, 0x%p, 0x%lx, 0x%x, 
0x%x) failed, %x\n",
                                                "memory_object_data_request",
                                                object->pager,
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 855d799..2f687fa 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -102,7 +102,7 @@ MACRO_END
  *     are now "top level" maps (either task map, kernel map or submap
  *     of the kernel map).
  *
- *     Since portions of maps are specified by start/end addreses,
+ *     Since portions of maps are specified by start/end addresses,
  *     which may not align with existing map entries, all
  *     routines merely "clip" entries to these start/end values.
  *     [That is, an entry is split into two, bordering at a
@@ -216,7 +216,7 @@ vm_map_t vm_map_create(
 
        result = (vm_map_t) kmem_cache_alloc(&vm_map_cache);
        if (result == VM_MAP_NULL)
-               panic("vm_map_create");
+               return VM_MAP_NULL;
 
        vm_map_setup(result, pmap, min, max);
 
@@ -4245,6 +4245,10 @@ vm_map_t vm_map_fork(vm_map_t old_map)
        new_map = vm_map_create(new_pmap,
                        old_map->min_offset,
                        old_map->max_offset);
+       if (new_pmap == PMAP_NULL) {
+               pmap_destroy(new_pmap);
+               return VM_MAP_NULL;
+       }
 
        for (
            old_entry = vm_map_first_entry(old_map);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/gnumach.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]