Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
pub
frama-c
Commits
a2efc89b
Commit
a2efc89b
authored
9 years ago
by
Kostyantyn Vorobyov
Browse files
Options
Downloads
Patches
Plain Diff
e-acsl-gcc.sh:
added option to redirect all output to a given file
parent
30ff4e8b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+11
-2
11 additions, 2 deletions
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
with
11 additions
and
2 deletions
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+
11
−
2
View file @
a2efc89b
...
@@ -46,9 +46,9 @@ check_tool() {
...
@@ -46,9 +46,9 @@ check_tool() {
# Getopt options
# Getopt options
LONGOPTIONS
=
"help,compile,compile-only,print,debug:,ocode:,oexec:,verbose:,
\
LONGOPTIONS
=
"help,compile,compile-only,print,debug:,ocode:,oexec:,verbose:,
\
frama-c-only,extra-cpp-args,rtl,frama-c-stdlib,full-mmodel,gmp,quiet,
frama-c-only,extra-cpp-args,rtl,frama-c-stdlib,full-mmodel,gmp,quiet,
logfile:,
ld-flags:,cpp-flags:"
ld-flags:,cpp-flags:"
SHORTOPTIONS
=
"h,c,C,p,d:,o:,O:,v:,f,E:,R,L,M,l:,e:,g,q"
SHORTOPTIONS
=
"h,c,C,p,d:,o:,O:,v:,f,E:,R,L,M,l:,e:,g,q
,s:
"
# Prefix for an error message due to wrong arguments
# Prefix for an error message due to wrong arguments
ERROR
=
"ERROR parsing arguments:"
ERROR
=
"ERROR parsing arguments:"
...
@@ -165,6 +165,8 @@ manpage() {
...
@@ -165,6 +165,8 @@ manpage() {
echo
" pass the specified flags to the pre-processor (compile-time)"
echo
" pass the specified flags to the pre-processor (compile-time)"
echo
" -q, --quiet"
echo
" -q, --quiet"
echo
" suppress any output except for errors and warnings"
echo
" suppress any output except for errors and warnings"
echo
" -s, --logfile <FILE>"
echo
" redirect all output to a given log file"
echo
""
echo
""
echo
"EXAMPLES:"
echo
"EXAMPLES:"
echo
" # Instrument foo.c and output the instrumented code to a.out.frama.c"
echo
" # Instrument foo.c and output the instrumented code to a.out.frama.c"
...
@@ -213,6 +215,13 @@ do
...
@@ -213,6 +215,13 @@ do
OPTION_DEBUG
=
"-debug 0"
OPTION_DEBUG
=
"-debug 0"
OPTION_VERBOSE
=
"-verbose 0"
OPTION_VERBOSE
=
"-verbose 0"
;;
;;
# Redirect all output to a given file
--logfile
|
-s
)
shift
;
exec
>
$1
exec
2>
$1
shift
;
;;
# Do compile instrumented code
# Do compile instrumented code
--compile
|
-c
)
--compile
|
-c
)
shift
;
shift
;
...
...
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