Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
06d2fa79
Commit
06d2fa79
authored
May 08, 2012
by
Alexander Wiebel
Browse files
[CHANGE
#86
] bring kdbg automation script up to date
parent
81890c1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
tools/debugging/bin/openwalnut-kdbg
tools/debugging/bin/openwalnut-kdbg
+19
-4
No files found.
tools/debugging/bin/openwalnut-kdbg
View file @
06d2fa79
#!/bin/sh
# get path of this script
BINDIR
=
`
dirname
"
$0
"
`
cd
"
$BINDIR
/.."
# We want to avoid that multiple system installations of OpenWalnut cause some weird loading of libs. We want ours (relative to our executable) to be loaded:
Libs
=
"libopenwalnut_biosig.so.1 libopenwalnut_eep.so.1 libopenwalnut_niftiio.so.1 libopenwalnut_niftiznz.so.1"
# Well, this one needs to be there! If not, your installation is wrong.
Preloads
=
"lib/libopenwalnut.so.1"
# We need to ensure the libs are there. If not, do not add them to the preloads variable
for
lib
in
$Libs
do
if
[
-e
"lib/
$lib
"
]
;
then
Preloads
=
$Preloads
:lib/
$lib
fi
done
# Finally, export it
export
LD_PRELOAD
=
$Preloads
# assume that this script is in the bin dir
# go there to ensure walnuts working directory is set correctly
cd
"
$BINDIR
"
# Force C locale. This fixes an issue with newer boost versions. See ticket #130.
export
LC_ALL
=
C
PARAMS
=
"
$*
"
echo
"Parameters:
$PARAMS
"
# run walnut
kdbg
-a
"
$PARAMS
"
openwalnut-qt4
kdbg
-a
"
$PARAMS
"
bin/
openwalnut-qt4
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment