Changeset 33a3fc7 in rtems-testing


Ignore:
Timestamp:
Aug 13, 2009, 9:24:46 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
59382cf
Parents:
7c43341
Message:

2009-08-13 Joel Sherrill <joel.sherrill@…>

  • Makefile, gdb-sim-run.in, gdb-sim.in, mkrun, skyeye-support, tsim-support: GDB now works with tsim and skyeye simulator BSPs.
Location:
sim-scripts
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    r7c43341 r33a3fc7  
     12009-08-13      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile, gdb-sim-run.in, gdb-sim.in, mkrun, skyeye-support,
     4        tsim-support: GDB now works with tsim and skyeye simulator BSPs.
     5
    162009-08-13      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • sim-scripts/Makefile

    r7c43341 r33a3fc7  
    1414  ${GDBSIM_SCRIPTS} $(GDBSIM_SCRIPTS:%=%-gdb) \
    1515  ${SKYEYE_SCRIPTS} $(SKYEYE_SCRIPTS:%=%-gdb) \
    16   ${TSIM_SCRIPTS} ${QEMU_SCRIPTS} ${OTHER_SCRIPTS}
     16  ${TSIM_SCRIPTS} $(TSIM_SCRIPTS:%=%-gdb) \
     17  ${QEMU_SCRIPTS} ${OTHER_SCRIPTS}
    1718
    1819COMPILED_PROGRAMS=usleep
     
    3334
    3435### Skyeye Simulator BSPs
    35 ant5206: gdb-sim-run.in ant5206.in
     36ant5206: gdb-sim-run.in gdb-sim.in ant5206.in
    3637        ./mkrun yes M68K-Coldfire m68k ant5206
    3738
    38 csb337: gdb-sim-run.in csb337.in
     39csb337: gdb-sim-run.in gdb-sim.in csb337.in
    3940        ./mkrun yes ARM arm csb337
    4041
    41 csb350: gdb-sim-run.in csb350.in
     42csb350: gdb-sim-run.in gdb-sim.in csb350.in
    4243        ./mkrun yes MIPS mips csb350
    4344
    44 csb360: gdb-sim-run.in csb360.in
     45csb360: gdb-sim-run.in gdb-sim.in csb360.in
    4546        ./mkrun yes M68K-Coldfire m68k csb360
    4647
    47 bf537Stamp: gdb-sim-run.in bf537Stamp.in
     48bf537Stamp: gdb-sim-run.in gdb-sim.in bf537Stamp.in
    4849        ./mkrun yes Blackfin bfin bf537Stamp
    4950
    50 edb7312: gdb-sim-run.in edb7312.in
     51edb7312: gdb-sim-run.in gdb-sim.in edb7312.in
    5152        ./mkrun yes ARM arm edb7312
    5253
    53 gumstix: gdb-sim-run.in gumstix.in
     54gumstix: gdb-sim-run.in gdb-sim.in gumstix.in
    5455        ./mkrun yes ARM arm gumstix
    5556
    56 rtl22xx: gdb-sim-run.in rtl22xx.in
     57rtl22xx: gdb-sim-run.in gdb-sim.in rtl22xx.in
    5758        ./mkrun yes ARM arm rtl22xx
    5859
    59 smdk2410: gdb-sim-run.in smdk2410.in
     60smdk2410: gdb-sim-run.in gdb-sim.in smdk2410.in
    6061        ./mkrun yes ARM arm smdk2410
    6162
    62 ezkit533: gdb-sim-run.in ezkit533.in
     63ezkit533: gdb-sim-run.in gdb-sim.in ezkit533.in
    6364        ./mkrun yes Blackfin bfin ezkit533
    6465
    65 leon2-skyeye: gdb-sim-run.in leon2-skyeye.in
     66leon2-skyeye: gdb-sim-run.in gdb-sim.in leon2-skyeye.in
    6667        ./mkrun yes SPARC sparc leon2-skyeye
    6768
    6869### TSIM Simulator BSPs
    69 erc32: gdb-sim-run.in erc32.in tsim-support
    70         ./mkrun no SPARC sparc erc32
     70erc32: gdb-sim-run.in gdb-sim.in erc32.in tsim-support
     71        ./mkrun yes SPARC sparc erc32
    7172
    72 leon2: gdb-sim-run.in leon2.in tsim-support
    73         ./mkrun no SPARC sparc leon2
     73leon2: gdb-sim-run.in gdb-sim.in leon2.in tsim-support
     74        ./mkrun yes SPARC sparc leon2
    7475
    75 leon3: gdb-sim-run.in leon3.in tsim-support
    76         ./mkrun no SPARC sparc leon3
     76leon3: gdb-sim-run.in gdb-sim.in leon3.in tsim-support
     77        ./mkrun yes SPARC sparc leon3
    7778
    7879### GDB Simulator BSPs
  • sim-scripts/gdb-sim-run.in

    r7c43341 r33a3fc7  
    1111
    1212trap "test_exit 1" 1 2 3 13 14 15
     13
     14inGDBScript=no
    1315
    1416test_exit()
  • sim-scripts/gdb-sim.in

    r7c43341 r33a3fc7  
    1111
    1212trap "test_exit 1" 1 2 3 13 14 15
     13
     14inGDBScript=yes
    1315
    1416progname=${0##*/}        # fast basename hack for ksh, bash
  • sim-scripts/mkrun

    r7c43341 r33a3fc7  
    2828        -e "s/@CPU_TARGET@/${CPU_TARGET}/" \
    2929        -e "s/@BSP@/${BSP}/" \
    30         -e "/^##INSERT BSP SUPPORT HERE/r ${BSP}.in" >${GDB}
     30        -e "/^##INSERT BSP SUPPORT HERE/r ${BSP}.in" | \
     31    sed -e "/^##INSERT SKYEYE SUPPORT HERE/r skyeye-support" \
     32        -e "/^##INSERT TSIM SUPPORT HERE/r tsim-support" >${GDB}
    3133  chmod +x ${GDB}
    3234fi
  • sim-scripts/skyeye-support

    r7c43341 r33a3fc7  
    88bspSupportsGDBServerMode="yes"
    99bspNeedsDos2Unix="yes"
    10 bspGeneratesGDBCommands="no"
     10bspGeneratesGDBCommands="yes"
    1111
    1212if [ ${coverage} = "yes" ] ; then
     
    2727bspGenerateGDBCommands()
    2828{
    29   tar remote :12345
    30   load
     29cat <<EOF
     30tar remote :12345
     31load
     32EOF
    3133}
    3234
  • sim-scripts/tsim-support

    r7c43341 r33a3fc7  
    66
    77runBSP=tsim-${tsimName}
     8bspUsesGDBSimulator="no"
     9bspGeneratesGDBCommands="yes"
     10bspSupportsGDBServerMode="yes"
    811
    912type ${runBSP} >/dev/null 2>&1
     
    2326{
    2427  echo "-c ${bspTreeFile} ${1}"
     28}
     29
     30gdbServerARGS()
     31{
     32  echo "-gdb"
     33}
     34
     35bspGenerateGDBCommands()
     36{
     37cat <<EOF
     38tar remote :1234
     39load
     40EOF
    2541}
    2642
     
    5470bspGenerateDeviceTree()
    5571{
    56   if [ ${coverage} = yes ] ; then
    57     echo "coverage enable"
     72  if [ ${inGDBScript} = no ] ; then
     73    if [ ${coverage} = yes ] ; then
     74      echo "coverage enable"
     75    fi
     76    if [ ${limit} -eq 0 ] ; then
     77      echo "go ${tsimGoAddress}"
     78    else
     79      echo "go ${tsimGoAddress} ${limit} s"
     80    fi
     81    if [ ${coverage} = yes ] ; then
     82      echo "coverage save ${2}.cov"
     83      echo "shell sleep 1"           # give tsim time to actually write file
     84    fi
     85    echo "quit"
    5886  fi
    59   if [ ${limit} -eq 0 ] ; then
    60     echo "go ${tsimGoAddress}"
    61   else
    62     echo "go ${tsimGoAddress} ${limit} s"
    63   fi
    64   if [ ${coverage} = yes ] ; then
    65     echo "coverage save ${2}.cov"
    66     echo "shell sleep 1"           # give tsim time to actually write file
    67   fi
    68   echo "quit"
    69  
    7087}
Note: See TracChangeset for help on using the changeset viewer.