diff options
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} |