Pull in newer gdb version and fix step and continue.

Pulled in newer version of gdb, believed to fix step and continue.
Unfortunately, the problem remains in the nacl version.
Including a patch to gdb to work around the issue for now.

BUG=None
TEST=local
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/129263002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1030 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Remove nacl-mounts

This library has been replaced by nacl_io which
ships as part of the NaCl SDK.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/119133005

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1031 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix libsodium build by removing direct reference to libstdc++.

R=jfb@chromium.org

Review URL: https://codereview.chromium.org/130023002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1032 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add gmp, mpfr, and mpc

GCC depends on them. Though nacl-gcc contains them, it would
be simpler to build them separately.

TEST=./make_all.sh gmp mpfr mpc
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/119963011

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1033 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add libpcre to naclports

libpcre is a dependency of GNU Octave

The attached patch removes the -S option (set stack size) from the PCRE binary since I think the call to getrlimit and setrlimit are not supported.

It is a normal build, except two tests are skipped.

BUG= https://codereview.chromium.org/115443002
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/115443002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1034 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Remove stubs glibc-compat that are now part of libnacl.

As of pepper_34, these functions are part of libnacl as
therefore no longer needed in glibc-compat.

What is more their existence in glibc-compat can cause
incorrect behavior if they are chosen over the symbols in
nacl_io.  For example the newlib vim build was linking
these when it should have been using nacl_io.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/105883003

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1035 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Adding gnumake 3.82.

BUG=None
TEST="./make_all.sh make"
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/134403002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1036 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add clapack to naclports

Another dependence of GNU Octave

BUG= https://codereview.chromium.org/109703007
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/109703007

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1037 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Adding busybox 1.22.0.

BUG=None
TEST="./make_all.sh busybox"
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/135723002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1038 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Adding subversion and its dependencies apr and apr-util.

Adding subversion 1.8.5, apr 1.5.0, and apr-util 1.5.3.

BUG=None
TEST="./make_all.sh subversion"
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/133763003

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1039 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add leveldb port

This port is not yet fully working or tested.  It is
a good port to add, as it is used by a lot of other
third_party code, including chromium, and bitcoin.

The next step is to get all the tests passing but this
requires mkdir and friends to be wired up the IRT
interfaces in when building for sel_ldr.

TEST=./make_all.sh leveldb
R=binji@chromium.org, bradnelson@google.com

Review URL: https://codereview.chromium.org/136103002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1040 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Remove SKIP_SEL_LDR_TESTS from common.sh.

It was never being set to 1 anyway, and its uses
were all questionable.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/133773007

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1041 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Revert "Remove SKIP_SEL_LDR_TESTS from common.sh."

This reverts commit r1041.  Turns out this was not safe.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/136553009

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1042 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Use naclports expat in apr-util to make build stable.

apr-util includes an inline version of libexpat.
On the bots confusion between the built-in one and the port result in build
failures. Explicitly using the ports version.

BUG=None
TEST="./make_all.sh apr-util"
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/130523005

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1043 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Remove bashism from /bin/sh script.

R=bradnelson@google.com

Review URL: https://codereview.chromium.org/137403002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1044 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Adding netcat 0.7.1.

BUG=None
TEST="./make_all.sh netcat"
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/137293002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1045 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add nacl-spawn

- Add nacl_spwan, which adds nacl_spwan_simple and
  nacl_waitpid. They are implemented by sending requests
  to naclterm.js. This is glibc only for now (getwd is missing
  in newlib, and getcwd seems to crash).
- Add cli_main, which will be the entry point of commandline
  tools on NaCl bash. As I'm planning to add a lot of commands
  (gcc, cc1, ls, objdump, etc.), I'd like to add this to share
  code among such CLI tools.
- Handle requests from nacl_spawn in naclterm.js.
- Use nacl_spawn from bash.

TEST=./make_all.sh bash
TEST=Run bash in bash, and then exit.
TEST=Attempt to run some command. It fails because the command
     is not in the directory for bash.nmf, but naclterm.js
     properly returns the control to bash.

BUG=
R=binji@chromium.org, sbc@chromium.org

Review URL: https://codereview.chromium.org/131003003

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1046 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Enabling nano under newlib.

This conditionally adds the --enable-tiny flag to configure to disable
usage of sigjmp_buf.

R=sbc@chromium.org
BUG=

Review URL: https://codereview.chromium.org/136953004

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1047 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Initial port of Toybox and toysh.

Toybox is a small, busybox-like collection of system tools, including a
simple shell.  The shell here has been modified to avoid
fork/spawn/waitpid for internal commands, so it should be functional for
examining a system at its basic level.  This should work, preliminarily,
with the current version of nacl-spawn in the repository.  Note that a
spawn can be forced by calling "toybox ls" for instance.

This also sets up a top-level PPAPI function within the toysh
executable; because of the odd nature of the build process for toybox,
it may be possible to abstract this out into a standard _ppapi.c
but because it looks like the state of *_ppapi.c functions is somewhat
in flux, I have left that in pending future revisions.

Finally, getcwd seems to only work for PNaCl builds, not any of the NaCl
builds.

R=sbc@chromium.org
BUG=

Review URL: https://codereview.chromium.org/136883007

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1048 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Enable newlib for nacl-spawn

nacl-spawn previously used getwd as getcwd crashed under newlib.  I
believe that with the change in behavior of KernelProxy::GetCWD in
https://codereview.chromium.org/122943005/ this is no longer the case.
Because heap-allocation with size=0 results in EINVAL under glibc
currently, this uses stack allocation.

R=hamaji@chromium.org, sbc@chromium.org
BUG=

Review URL: https://codereview.chromium.org/138533002

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1049 7dad1e8b-422e-d2af-fbf5-8013b78bd812