Changeset a531a7c in rtems-testing for sim-scripts


Ignore:
Timestamp:
Mar 16, 2009, 5:41:54 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
adf85bb
Parents:
43e95b9
Message:

2009-03-16 Joel Sherrill <joel.sherrill@…>

  • gdb-sim.in, psim.in: Add -s to psim-gdb as way to turn on System V IPC support.
Location:
sim-scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    r43e95b9 ra531a7c  
     12009-03-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * gdb-sim.in, psim.in: Add -s to psim-gdb as way to turn on System V
     4        IPC support.
     5
    162009-01-22      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • sim-scripts/gdb-sim.in

    r43e95b9 ra531a7c  
    1313
    1414progname=${0##*/}        # fast basename hack for ksh, bash
     15
     16USAGE=\
     17"usage: $progname [ -opts ] test
     18        -i         -- interactive (default=no time limit)
     19
     20System V IPC and Coverage are not supported by all BSPs or simulators.
     21"
    1522
    1623for v in 4.10 4.9 4.8 4.7 ""
     
    4148}
    4249
     50#   log an error to stderr
     51prerr()
     52{
     53    echo "$*" >&2
     54}
     55
     56fatal() {
     57    [ "$1" ] && prerr $*
     58    prerr "$USAGE"
     59    exit 1
     60}
     61
     62warn() {
     63    [ "$1" ] && prerr $*
     64}
     65
    4366if [ $# -eq 0 ] ; then
    4467  echo "No arguments .. no executable specified"
    4568  exit 1
    4669fi
     70
     71use_sysv_ipc="no"
     72while getopts s OPT
     73do
     74 case "$OPT" in
     75   s) use_sysv_ipc="yes";;
     76   *) ;;
     77 esac
     78done
     79
     80shiftcount=`expr $OPTIND - 1`
     81shift $shiftcount
     82
     83args=$*
    4784
    4885### Set BSP defaults.  If BSP does not have default, it will override
     
    75112
    76113###  Add CPU specific commands
    77 case @CPU@ in
    78   powerpc) echo  "b C_exception_handler" ;;
     114case @CPU_TARGET@ in
     115  *powerpc*) echo  "b C_exception_handler" ;;
    79116  *)       ;;
    80117esac >>@BSP@-cmds
     
    88125EOF
    89126
     127exit 0
    90128${GDB} --command=@BSP@-cmds $*
    91129
  • sim-scripts/psim.in

    r43e95b9 ra531a7c  
    4343bspGenerateDeviceTree()
    4444{
    45   enable_sysv_ipc="yes"
     45  enable_sysv_devices="yes"
    4646
    4747  if [ X${use_sysv_ipc} = X"yes" ] ; then
    48     enable_sysv_ipc="yes"
     48    enable_sysv_devices="yes"
    4949    value=-1               # for now assume we are slave in this mode
    5050  else
Note: See TracChangeset for help on using the changeset viewer.