Don't exit mksysinfo.sh if there is no _user_regs_struct.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 13 Jan 2011 20:23:19 +0000 (20:23 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 13 Jan 2011 20:23:19 +0000 (20:23 +0000)
From-SVN: r168764

libgo/mksysinfo.sh

index f43db619306fba8b809da93ccc93b5c40e502ebc..35a461c889c7be9afc937941ad10275779c78d3f 100755 (executable)
@@ -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'/^ *//'`