diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-11-26 01:54:14 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-11-26 02:07:05 +0100 |
commit | 3d37661a095c8d0a2a4376a859fa73c99a45ca56 (patch) | |
tree | 959461622b7e7c4f6f63039b4263bfa89c08796b /solenv | |
parent | 0b4a9bd2b49da8441d873a52ae5ec2c86937c839 (diff) |
dont attach, start own instance as otherwise it might be blocked via/proc/sys/kernel/yama/ptrace_scope
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 9d07c9fcdd85..c5c032460955 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -401,11 +401,10 @@ endef define gb_Module_DEBUGRUNCOMMAND OFFICESCRIPT=`mktemp` && \ -echo ". $(OUTDIR)/installation/opt/program/ooenv" > $${OFFICESCRIPT} && \ -echo "$(OUTDIR)/installation/opt/program/soffice.bin --norestore --nologo \"--accept=pipe,name=$(USER);urp;\" -env:UserInstallation=file://$(OUTDIR)/installation/ &" >> $${OFFICESCRIPT} && \ -echo "OFFICEPID=\$$!" >> $${OFFICESCRIPT} && \ -echo "echo \"office started as \$${OFFICEPID}\"" >> $${OFFICESCRIPT} && \ -echo "gdb -ex \"at \$${OFFICEPID}\" -ex \"c\"" >> $${OFFICESCRIPT} && \ +printf ". $(OUTDIR)/installation/opt/program/ooenv\\n" > $${OFFICESCRIPT} && \ +printf "gdb $(OUTDIR)/installation/opt/program/soffice.bin" >> $${OFFICESCRIPT} && \ +printf " -ex \"set args --norestore --nologo \\\"--accept=pipe,name=$(USER);urp;\\\" -env:UserInstallation=file://$(OUTDIR)/installation/\"" >> $${OFFICESCRIPT} && \ +printf " -ex \"r\"\\n" >> $${OFFICESCRIPT} && \ $(SHELL) $${OFFICESCRIPT} && \ rm $${OFFICESCRIPT} endef |