summaryrefslogblamecommitdiffstats
path: root/sim-scripts/skyeye-support
blob: 0aaacc2cd8441cefc5eb85dec8a5e6f70acdfd7b (plain) (tree)
1
2
3
4
5
6
7
8
9


                        
 
                        
                              
                      
                             
                     
                                           
                         
 

             









                                  









                                                        

                        



                 

 



                  
                           
      
               

 



                             


                          







                                
                            
#
#  Shared Skyeye Support
#

bspUsesGDBSimulator="no"
bspSupportsGDBServerMode="yes"
bspNeedsDos2Unix="yes"
bspGeneratesGDBCommands="yes"
bspNeedsSttySane="no"
# sometimes the .cov file has a zero length
bspRunsFailRandomly="yes"

runBSP=skyeye

runARGS()
{
  echo "-c ${bspTreeFile} -e ${1}"
}

gdbServerARGS()
{
  echo "-c ${bspTreeFile} -d"
}

bspCheckRunWasOK()
{
  # sometimes the .cov file has a zero length
  if [ ${coverage} = "yes" -a ! -s ${toRun}.cov ] ; then
    echo 1
  else
    echo 0
  fi
}

bspGenerateGDBCommands()
{
cat <<EOF
tar remote :12345
load
EOF
}

bspLimit()
{
  tname=$1
  case ${tname} in
    *)         limit=180 ;;
  esac
  echo ${limit}
}

bspExited_ARM()
{
  for pattern in  \
     "^Unhandled exception" \
     "^SKYEYE:Error" \
     "^Bus write error," \
     "^Bus read error,"
  do
    grep "${pattern}" ${logfile}
    if [ $? -eq 0 ] ; then
      return 1
    fi
  done
  return 0
}
bspGeneratesDeviceTree="yes"