diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-09-11 22:42:00 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-09-11 22:42:00 +0000 |
commit | 5a6d25fcd5ba727f1af1f68d5b0382e0541e929d (patch) | |
tree | 5914d19ec4e81fa7133bcfd3f30839e4a6ef6720 /c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom | |
parent | 2009-09-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-5a6d25fcd5ba727f1af1f68d5b0382e0541e929d.tar.bz2 |
2009-09-11 Till Straumann <Till.Straumann@TU-Berlin.de>
* psim-top.in, psim-bottom: Added support for options
-d (print device tree and exit), -h (usage info) and
-n (enable NIC support).
* psim-gdb-bottom: Added support for options -s (force sysv IPC),
-h (usage info) and -n (enable NIC support).
Allow user to override GDB variable from environment.
* psim-shared: cat NIC properties into device file if the
user had specified '-n'.
* runtest-top.in: removed unsupported options -o, -d from
usage info.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom')
-rwxr-xr-x | c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom b/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom index fc104270e7..4e030e5ccd 100755 --- a/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom +++ b/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom @@ -1,8 +1,31 @@ +progname=${0##*/} # fast basename hack for ksh, bash -## TODO: may want command line ability to turn on some psim tracing +USAGE=\ +"usage: $progname [ -opts ] [prog] + -s -- force System V IPC support on (default=auto) + -n -- enable NIC support ***REQUIRES PATCHED GDB/PSIM*** + -h -- this message +" # Recognize special argument to force System V IPC support on use_sysv_ipc="auto" +enable_if_sim="" + +## TODO: may want command line ability to turn on some psim tracing +while getopts snh OPT +do + case "$OPT" in + s) use_sysv_ipc="yes";; + n) enable_if_sim="yes";; + h) echo "$USAGE"; exit 0;; + *) echo "unknown option"; echo "$USAGE"; exit 0;; + esac +done +shiftcount=`expr $OPTIND - 1` +shift $shiftcount + +args=$* + if [ X${1} = "X-psim_sysv" ] ; then use_sysv_ipc="yes" shift @@ -20,7 +43,9 @@ gen_gdb_script() echo "printf \"Use run to start the RTEMS application\\n\"" } -GDB=${rtemsTarget}-gdb +if [ X${GDB} = X ] ; then + GDB=${rtemsTarget}-gdb +fi gen_device_tree ${1} >${TREE_FILE} gen_gdb_script >${GDB_FILE} |