source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom @ 0a65ad6

4.104.11
Last change on this file since 0a65ad6 was 0a65ad6, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 4, 2008 at 8:26:45 PM

2008-12-04 Joel Sherrill <joel.sherrill@…>

  • psim-bottom, psim-gdb-bottom, psim-gdb-top.in, psim-shared, psim-top.in: Clean up and works better. Uses argv[0] to override configured target name.
  • Property mode set to 100755
File size: 557 bytes
Line 
1#
2# process the options
3#
4# defaults for getopt vars
5#
6
7verbose=""
8limit="0"
9use_sysv_ipc="auto"
10
11## TODO: may want command line ability to turn on some psim tracing
12while getopts vsl: OPT
13do
14    case "$OPT" in
15        v) verbose="yes";;
16        l) limit="$OPTARG";;
17        s) use_sysv_ipc="yes";;
18        *) fatal;;
19    esac
20done
21shiftcount=`expr $OPTIND - 1`
22shift $shiftcount
23
24args=$*
25
26if [ $# -eq 0 ] ; then
27  fatal
28fi
29
30if [ X${RUN} = X ] ; then
31  RUN=${rtemsTarget}-run
32fi
33
34gen_device_tree ${1} >${TREE_FILE}
35runone ${1} ${limit}
36rm -f ${TREE_FILE}
37exit $?
38
Note: See TracBrowser for help on using the repository browser.