Add optional debugrun soffice.bin arguments...

using the gb_DBGARGS variable.

This value is appended to the gdb "set args" command.

Change-Id: Ic15754d7edcc448f283522338900684a29a03cf3
Reviewed-on: https://gerrit.libreoffice.org/21364
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Tested-by: Jan-Marek Glogowski <glogow@fbihome.de>
This commit is contained in:
Jan-Marek Glogowski
2016-01-09 00:35:45 +01:00
parent f27c5f598f
commit ff37ea6f96
2 changed files with 7 additions and 2 deletions

View File

@@ -30,7 +30,9 @@ AVAILABLE TARGETS
all build product and run unit tests (default goal)
clean remove all generated files
debugrun starts the INSTDIR instance and allows tests to
be run against it
be run against it. You can provide additional
arguments to soffice.bin using the gb_DBGARGS
variable.
check run unit tests and if in toplevel subsequentcheck
unitcheck run unit tests
slowcheck run slow unit tests
@@ -139,3 +141,5 @@ INTERACTIVE VARIABLES:
gb_Side Either "host" or "build" (default to "host").
determine if config_host.mk or config_build.mk is used to
set the build environment.
gb_DBGARGS Append these arguments to GDBs "set args" command for
debugrun. Double quotes will be automatically escaped.

View File

@@ -303,7 +303,8 @@ define gb_Module_DEBUGRUNCOMMAND
OFFICESCRIPT=`mktemp` && \
printf 'if [ -e $(INSTROOT)/program/ooenv ]; then . $(INSTROOT)/program/ooenv; fi\n' > $${OFFICESCRIPT} && \
printf "gdb $(INSTROOT)/$(LIBO_BIN_FOLDER)/soffice.bin" >> $${OFFICESCRIPT} && \
printf " -ex \"set args --norestore --nologo '--accept=pipe,name=$(USER);urp;' \"" >> $${OFFICESCRIPT} && \
printf " -ex \"set args --norestore --nologo '--accept=pipe,name=$(USER);urp;' %s\"" \
"$(subst ","\\\"",$(value gb_DBGARGS))" >> $${OFFICESCRIPT} && \
$(SHELL) $${OFFICESCRIPT} && \
rm $${OFFICESCRIPT}
endef