Make breakpad work in the seccomp sandbox. Take advantage of a feature in linux_syscall_support.h that allows us to mark all places where we embedd direct system calls. This allows the sandbox to rewrite them as needed.
Make breakpad work in the seccomp sandbox. Take advantage of a feature
in linux_syscall_support.h that allows us to mark all places where we
embedd direct system calls. This allows the sandbox to rewrite them as
needed.

Also mark a few system calls as having ignored return codes. This makes
some compilers happy and prevents warning messages.

Finally, add more verbose error messages if crashdumping fails. There are
various reasons why breakpad can be prevented from doing its job. And
these error messages have proven helpful. We should leave them in the
production binary.

TEST=add --enable-seccomp-mode to command line and go to about:crash
BUG=37728
Review URL: http://codereview.chromium.org/3122028

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@56694 0039d316-1c4b-4281-b951-d872f2087c98

dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,patrickm/chromium.src,littlstar/chromium.src,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,M4sse/chromium.src,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,keishi/chromium,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,ltilve/chromium,markYoungH/chromium.src,Jonekee/chromium.src,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,timopulkkinen/BubbleFish,dushu1203/chromium.src,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,Just-D/chromium-1,littlstar/chromium.src,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,rogerwang/chromium,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,ltilve/chromium,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,keishi/chromium,M4sse/chromium.src,ltilve/chromium,anirudhSK/chromium,keishi/chromium,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,rogerwang/chromium,hujiajie/pa-chromium,Jonekee/chromium.src,ChromiumWebApps/chromium,robclark/chromium,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,robclark/chromium,ondra-novak/chromium.src,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,zcbenz/cefode-chromium,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,rogerwang/chromium,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,littlstar/chromium.src,keishi/chromium,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,ltilve/chromium,Just-D/chromium-1,zcbenz/cefode-chromium,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,markYoungH/chromium.src,robclark/chromium,ChromiumWebApps/chromium,Jonekee/chromium.src,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,Chilledheart/chromium,ChromiumWebApps/chromium,anirudhSK/chromium,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,axinging/chromium-crosswalk,dednal/chromium.src,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,dushu1203/chromium.src,anirudhSK/chromium,rogerwang/chromium,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,anirudhSK/chromium,markYoungH/chromium.src,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,nacl-webkit/chrome_deps,Chilledheart/chromium,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,markYoungH/chromium.src,markYoungH/chromium.src,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,jaruba/chromium.src,dednal/chromium.src,anirudhSK/chromium,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,jaruba/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,ondra-novak/chromium.src,rogerwang/chromium,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,ltilve/chromium,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,dushu1203/chromium.src,ondra-novak/chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,jaruba/chromium.src,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,robclark/chromium,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,bright-sparks/chromium-spacewalk,M4sse/chromium.src,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,pozdnyakov/chromium-crosswalk,keishi/chromium,hujiajie/pa-chromium,Jonekee/chromium.src,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,patrickm/chromium.src,ltilve/chromium,jaruba/chromium.src,ltilve/chromium,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,anirudhSK/chromium,jaruba/chromium.src,hujiajie/pa-chromium,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,rogerwang/chromium,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,littlstar/chromium.src,ChromiumWebApps/chromium,robclark/chromium,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ltilve/chromium,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,robclark/chromium,Jonekee/chromium.src,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,patrickm/chromium.src,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,bright-sparks/chromium-spacewalk,ltilve/chromium,ChromiumWebApps/chromium,keishi/chromium,Jonekee/chromium.src,patrickm/chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,axinging/chromium-crosswalk,keishi/chromium,junmin-zhu/chromium-rivertrail,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,rogerwang/chromium,patrickm/chromium.src,Just-D/chromium-1,axinging/chromium-crosswalk,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,robclark/chromium,keishi/chromium,Fireblend/chromium-crosswalk,rogerwang/chromium,rogerwang/chromium,rogerwang/chromium,axinging/chromium-crosswalk,patrickm/chromium.src,jaruba/chromium.src,Just-D/chromium-1,keishi/chromium,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,Chilledheart/chromium,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,zcbenz/cefode-chromium,littlstar/chromium.src,markYoungH/chromium.src,Just-D/chromium-1,robclark/chromium,Jonekee/chromium.src,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,Chilledheart/chromium,anirudhSK/chromium,axinging/chromium-crosswalk,Just-D/chromium-1,patrickm/chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,robclark/chromium,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,Jonekee/chromium.src,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,littlstar/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,dednal/chromium.src,timopulkkinen/BubbleFish,dednal/chromium.src,M4sse/chromium.src,jaruba/chromium.src,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,dednal/chromium.src,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,dednal/chromium.src,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,M4sse/chromium.src,mogoweb/chromium-crosswalk,robclark/chromium,keishi/chromium,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,dednal/chromium.src,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,keishi/chromium,Chilledheart/chromium,zcbenz/cefode-chromium,M4sse/chromium.src,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,hgl888/chromium-crosswalk