Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Anders Lindh Olsson
e3-require
Commits
a2a60759
Commit
a2a60759
authored
4 years ago
by
Simon Rose
Browse files
Options
Downloads
Patches
Plain Diff
Added options for gdb/valgrind
parent
96b9ba54
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/iocsh.bash
+1
-4
1 addition, 4 deletions
tools/iocsh.bash
tools/iocsh_functions
+10
-0
10 additions, 0 deletions
tools/iocsh_functions
with
11 additions
and
4 deletions
tools/iocsh.bash
+
1
−
4
View file @
a2a60759
...
...
@@ -121,15 +121,12 @@ ulimit -c unlimited
if
[
"
$REALTIME
"
==
"RT"
]
;
then
export
LD_BIND_NOW
=
1
;
__CHRT__
=
"chrt --fifo 1 "
;
printf
"##
\n
"
;
printf
"## Better support for Real-Time IOC Application.
\n
"
printf
"## Now we set 'export LD_BIND_NOW=%s'
\n
"
"
$LD_BIND_NOW
"
;
printf
"## If one may meet the 'Operation not permitted' message,
\n
"
;
printf
"## please run %s without the real-time option
\n
"
"
$SC_SCRIPTNAME
"
;
printf
"##
\n
"
;
else
__CHRT__
=
""
;
fi
if
[[
${
BASECODE
}
-ge
07000101
]]
;
then
...
...
@@ -140,5 +137,5 @@ fi
#
#
${
__
CHRT
__
}${
EPICS_BASE
}
/bin/
${
EPICS_HOST_ARCH
}
/softIoc
${
__PVA__
}
-D
${
EPICS_BASE
}
/dbd/softIoc
${
__PVA__
}
.dbd
"
${
IOC_STARTUP
}
"
2>&1
${
__
LOADER
__
}${
EPICS_BASE
}
/bin/
${
EPICS_HOST_ARCH
}
/softIoc
${
__PVA__
}
-D
${
EPICS_BASE
}
/dbd/softIoc
${
__PVA__
}
.dbd
"
${
IOC_STARTUP
}
"
2>&1
This diff is collapsed.
Click to expand it.
tools/iocsh_functions
+
10
−
0
View file @
a2a60759
...
...
@@ -28,6 +28,7 @@ E_NOTROOT=101
EXIST
=
1
NON_EXIST
=
0
REALTIME
=
__LOADER__
=
function
pushd
{
builtin pushd
"
$@
"
>
/dev/null
;
}
function
popd
{
builtin popd
"
$@
"
>
/dev/null
;
}
...
...
@@ -384,6 +385,7 @@ function loadFiles
;;
(
-rt
|
-RT
|
-realtime
|
--realtime
)
REALTIME
=
"RT"
__LOADER__
=
"chrt --fifo 1 "
;;
(
@
*
)
loadFiles
$(
cat
${
file
#@
}
)
...
...
@@ -422,6 +424,14 @@ function loadFiles
shift
printf
"epicsEnvSet EPICS_DRIVER_PATH %s:
${
EPICS_DRIVER_PATH
}
\n
"
,
$1
;;
(
-dg
)
shift
__LOADER__
=
"gdb --eval-command run --args "
;;
(
-dv
)
shift
__LOADER__
=
"valgrind --leak-check=full "
;;
(
-
*
)
printf
"Unknown option
$1
\n\n
"
>
&2
help
...
...
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