Don't exit mksysinfo.sh if there is no _user_regs_struct.

From-SVN: r168764
This commit is contained in:
Ian Lance Taylor 2011-01-13 20:23:19 +00:00
parent a2b63a2001
commit 389295b785
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ fi
# The registers returned by PTRACE_GETREGS. This is probably
# GNU/Linux specific; it should do no harm if there is no
# _user_regs_struct.
regs=`grep '^type _user_regs_struct struct' gen-sysinfo.go`
regs=`grep '^type _user_regs_struct struct' gen-sysinfo.go || true`
if test "$regs" != ""; then
regs=`echo $regs | sed -e 's/type _user_regs_struct struct //' -e 's/[{}]//g'`
regs=`echo $regs | sed -e s'/^ *//'`