Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
77b36feb
Commit
77b36feb
authored
7 years ago
by
Peterson, Peter
Browse files
Options
Downloads
Patches
Plain Diff
Add option for running with gdb
parent
17d10247
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildconfig/CMake/Packaging/launch_mantidplot.sh.in
+10
-3
10 additions, 3 deletions
buildconfig/CMake/Packaging/launch_mantidplot.sh.in
with
10 additions
and
3 deletions
buildconfig/CMake/Packaging/launch_mantidplot.sh.in
+
10
−
3
View file @
77b36feb
...
...
@@ -22,10 +22,10 @@ fi
if
[
-n
"
${
NXSESSIONID
}
"
]
;
then
command
-v
vglrun
>
/dev/null 2>&1
||
{
echo
>
&2
"MantidPlot requires VirtualGL but it's not installed. Aborting."
;
exit
1
;
}
VGLRUN
=
"vglrun
"
VGLRUN
=
"vglrun"
elif
[
-n
"
${
TLSESSIONDATA
}
"
]
;
then
command
-v
vglrun
>
/dev/null 2>&1
||
{
echo
>
&2
"MantidPlot requires VirtualGL but it's not installed. Aborting."
;
exit
1
;
}
VGLRUN
=
"vglrun
"
VGLRUN
=
"vglrun"
fi
# Define when to report large memory allocation
...
...
@@ -42,8 +42,15 @@ else
TCM_REPORT
=
${
TCMALLOC_LARGE_ALLOC_REPORT_THRESHOLD
}
fi
# run with gdb THIS OPTION MUST BE SUPPLIED FIRST
if
[
-n
"
$1
"
]
&&
[
"
$1
"
=
"--debug"
]
;
then
shift
GDB
=
"gdb --args"
fi
# Launch
LD_PRELOAD
=
${
LOCAL_PRELOAD
}
TCMALLOC_RELEASE_RATE
=
${
TCM_RELEASE
}
\
TCMALLOC_LARGE_ALLOC_REPORT_THRESHOLD
=
${
TCM_REPORT
}
\
LD_LIBRARY_PATH
=
${
LOCAL_LDPATH
}
QT_API
=
pyqt
\
@WRAPPER_PREFIX@
$VGLRUN$INSTALLDIR
/@MANTIDPLOT_EXEC@
$*
@WRAPPER_POSTFIX@
@WRAPPER_PREFIX@
$VGLRUN
$GDB
$INSTALLDIR
/@MANTIDPLOT_EXEC@
$*
@WRAPPER_POSTFIX@
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment