Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
027a721f
Commit
027a721f
authored
May 05, 2011
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(uniset-start): Сделал автоматическое определение местоположения запускаемого…
(uniset-start): Сделал автоматическое определение местоположения запускаемого файла при запуске через gdb.
parent
f738a640
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
17 deletions
+4
-17
uniset-start.sh
Utilities/scripts/uniset-start.sh
+3
-16
start_fg.sh
extensions/MBTCPMaster/start_fg.sh
+1
-1
No files found.
Utilities/scripts/uniset-start.sh
View file @
027a721f
...
@@ -17,7 +17,7 @@ print_usage()
...
@@ -17,7 +17,7 @@ print_usage()
{
{
[
"
$1
"
=
0
]
||
exec
>
&2
[
"
$1
"
=
0
]
||
exec
>
&2
cat
<<
EOF
cat
<<
EOF
Usage:
${
0
##*/
}
[options] programm
[arguments]
Usage:
${
0
##*/
}
[options] programm
Valid options are:
Valid options are:
-h, --help display help screen
-h, --help display help screen
...
@@ -33,9 +33,6 @@ EOF
...
@@ -33,9 +33,6 @@ EOF
[
-n
"
$1
"
]
&&
exit
"
$1
"
||
exit
[
-n
"
$1
"
]
&&
exit
"
$1
"
||
exit
}
}
[
-z
"
$1
"
]
&&
print_usage 1
#parse command line options
#parse command line options
case
"
$1
"
in
case
"
$1
"
in
-h
|
--help
)
print_usage 0
;;
-h
|
--help
)
print_usage 0
;;
...
@@ -56,19 +53,9 @@ then
...
@@ -56,19 +53,9 @@ then
[
"
$DBG
"
==
"call"
]
&&
start_line
=
"valgrind --tool=callgrind --trace-children=yes --log-file=valgrind.log
$COMLINE
"
[
"
$DBG
"
==
"call"
]
&&
start_line
=
"valgrind --tool=callgrind --trace-children=yes --log-file=valgrind.log
$COMLINE
"
[
"
$DBG
"
==
"cache"
]
&&
start_line
=
"valgrind --tool=cachegrind --trace-children=yes --log-file=valgrind.log
$COMLINE
"
[
"
$DBG
"
==
"cache"
]
&&
start_line
=
"valgrind --tool=cachegrind --trace-children=yes --log-file=valgrind.log
$COMLINE
"
[
"
$DBG
"
==
"hel"
]
&&
start_line
=
"valgrind --tool=helgrind --trace-children=yes --log-file=valgrind.log
$COMLINE
"
[
"
$DBG
"
==
"hel"
]
&&
start_line
=
"valgrind --tool=helgrind --trace-children=yes --log-file=valgrind.log
$COMLINE
"
PROG
=
`
basename
$1
`
if
[
"
$DBG
"
==
"gdb"
]
;
then
if
[
-a
"./.libs/lt-
$PROG
"
]
;
then
PROG
=
"./.libs/lt-
$PROG
"
else
if
[
-a
"./.libs/
$PROG
"
]
;
then
PROG
=
"./.libs/
$PROG
"
fi
fi
shift
if
[
"
$DBG
"
==
"gdb"
]
;
then
start_line
=
"gdb --args
$PROG
$*
--uniset-port
$OMNIPORT
"
start_line
=
"gdb --args
$COMLINE
"
fi
fi
echo
Running
"
$start_line
"
echo
Running
"
$start_line
"
...
...
extensions/MBTCPMaster/start_fg.sh
View file @
027a721f
#!/bin/sh
#!/bin/sh
uniset-start.sh
-f
./uniset-mbtcpmaster
\
./uniset-start.sh
-g
./uniset-mbtcpmaster
\
--confile
test.xml
\
--confile
test.xml
\
--mbtcp-name
MBMaster1
\
--mbtcp-name
MBMaster1
\
--smemory-id
SharedMemory
\
--smemory-id
SharedMemory
\
...
...
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