Changeset 1ba5b39 in rtems-testing


Ignore:
Timestamp:
Aug 13, 2009, 3:00:05 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
7c43341
Parents:
db8b38d
Message:

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

  • .cvsignore, Makefile, edb7312.in, gdb-sim-run.in, skyeye-support: Add support for invoking a simulator external to gdb in gdb server mode. Have the gdb commands generated to include attaching to that server instance.
Location:
sim-scripts
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/.cvsignore

    rdb8b38d r1ba5b39  
    11ant5206
     2ant5206-gdb
    23avrtest
    34bf537Stamp
     5bf537Stamp-gdb
    46csb337
     7csb337-gdb
    58csb350
     9csb350-gdb
    610csb360
     11csb360-gdb
    712edb7312
     13edb7312-gdb
    814erc32
    915ezkit533
     16ezkit533-gdb
    1017gumstix
     18gumstix-gdb
    1119h8sim
    1220h8sim-gdb
     
    1523leon2
    1624leon2-skyeye
     25leon2-skyeye-gdb
    1726leon3
    1827m32csim
     
    2433qemu-rtems
    2534rtl22xx
    26 smdk2410
     35rtl22xx-gdb
    2736simsh
    2837simsh-gdb
    2938sis
    3039sis-gdb
     40smdk2410
     41smdk2410-gdb
    3142usleep
  • sim-scripts/ChangeLog

    rdb8b38d r1ba5b39  
     12009-08-13      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * .cvsignore, Makefile, edb7312.in, gdb-sim-run.in, skyeye-support: Add
     4        support for invoking a simulator external to gdb in gdb server mode.
     5        Have the gdb commands generated to include attaching to that server
     6        instance.
     7
    182009-08-12      Josh Switnicki <josh.switnicki@utoronto.ca>
    29
  • sim-scripts/Makefile

    rdb8b38d r1ba5b39  
    44
    55INSTALL_DIR=../bin
    6 GDBSIM_SCRIPTS=h8sim h8sim-gdb jmr3904 jmr3904-gdb \
    7   m32csim m32csim-gdb m32rsim m32rsim-gdb psim psim-gdb \
    8   sis sis-gdb simsh simsh-gdb
     6GDBSIM_SCRIPTS=h8sim jmr3904 m32csim m32rsim psim sis simsh
    97SKYEYE_SCRIPTS=ant5206 bf537Stamp csb337 csb350 csb360 edb7312 ezkit533 \
    108  gumstix rtl22xx smdk2410 leon2-skyeye
     9
    1110TSIM_SCRIPTS=erc32 leon2 leon3
    1211QEMU_SCRIPTS=qemu-rtems
    1312OTHER_SCRIPTS=avrtest
    14 GENERATED_SCRIPTS=${GDBSIM_SCRIPTS} ${SKYEYE_SCRIPTS} \
     13GENERATED_SCRIPTS=\
     14  ${GDBSIM_SCRIPTS} $(GDBSIM_SCRIPTS:%=%-gdb) \
     15  ${SKYEYE_SCRIPTS} $(SKYEYE_SCRIPTS:%=%-gdb) \
    1516  ${TSIM_SCRIPTS} ${QEMU_SCRIPTS} ${OTHER_SCRIPTS}
    1617
     
    3334### Skyeye Simulator BSPs
    3435ant5206: gdb-sim-run.in ant5206.in
    35         ./mkrun no M68K-Coldfire m68k ant5206
     36        ./mkrun yes M68K-Coldfire m68k ant5206
    3637
    3738csb337: gdb-sim-run.in csb337.in
    38         ./mkrun no ARM arm csb337
     39        ./mkrun yes ARM arm csb337
    3940
    4041csb350: gdb-sim-run.in csb350.in
    41         ./mkrun no MIPS mips csb350
     42        ./mkrun yes MIPS mips csb350
    4243
    4344csb360: gdb-sim-run.in csb360.in
    44         ./mkrun no M68K-Coldfire m68k csb360
     45        ./mkrun yes M68K-Coldfire m68k csb360
    4546
    4647bf537Stamp: gdb-sim-run.in bf537Stamp.in
    47         ./mkrun no Blackfin bfin bf537Stamp
     48        ./mkrun yes Blackfin bfin bf537Stamp
    4849
    4950edb7312: gdb-sim-run.in edb7312.in
    50         ./mkrun no ARM arm edb7312
     51        ./mkrun yes ARM arm edb7312
    5152
    5253gumstix: gdb-sim-run.in gumstix.in
    53         ./mkrun no ARM arm gumstix
     54        ./mkrun yes ARM arm gumstix
    5455
    5556rtl22xx: gdb-sim-run.in rtl22xx.in
    56         ./mkrun no ARM arm rtl22xx
     57        ./mkrun yes ARM arm rtl22xx
    5758
    5859smdk2410: gdb-sim-run.in smdk2410.in
    59         ./mkrun no ARM arm smdk2410
     60        ./mkrun yes ARM arm smdk2410
    6061
    6162ezkit533: gdb-sim-run.in ezkit533.in
    62         ./mkrun no Blackfin bfin ezkit533
     63        ./mkrun yes Blackfin bfin ezkit533
    6364
    6465leon2-skyeye: gdb-sim-run.in leon2-skyeye.in
    65         ./mkrun no SPARC sparc leon2-skyeye
     66        ./mkrun yes SPARC sparc leon2-skyeye
    6667
    6768### TSIM Simulator BSPs
  • sim-scripts/edb7312.in

    rdb8b38d r1ba5b39  
    99{
    1010  echo "-c ${bspTreeFile} -e ${1}"
     11}
     12
     13gdbServerARGS()
     14{
     15  echo "-c ${bspTreeFile} -d"
    1116}
    1217
  • sim-scripts/gdb-sim-run.in

    rdb8b38d r1ba5b39  
    2727        -C         -- cat test output if not interactive (default=no)
    2828        -g         -- generate device tree and exit (default=no)
     29        -G         -- put simulator in GDB server mode (default=no)
    2930        -i         -- interactive (default=no time limit)
    3031        -s         -- force System V IPC support (default=no)
     
    3233        -L dir     -- specify log directory (default is 'log')
    3334
    34 System V IPC and Coverage are not supported by all BSPs or simulators.
    35 
    36 When you generate a device tree and exit, remember to specify an executable.
    37 Otherwise, the script won't know what to generate it for.
     35NOTES:
     36  + System V IPC and Coverage are not supported by all BSPs or simulators.
     37  + GDB Server mode is only supported by stand-along simulators.
     38  + When you generate a device tree and exit, remember to specify an
     39    executable.  Otherwise, the script won't know what to generate it for.
    3840"
    3941
     
    7577defaultLimit="not_set"
    7678interactive="no"
     79gdb_server_mode="no"
    7780use_sysv_ipc="no"
    7881generate_tree_and_exit="no"
    7982logdir="log"
    8083
    81 while getopts "vcCgil:L:s" OPT
     84while getopts "vcCgGil:L:s" OPT
    8285do
    8386 case "$OPT" in
     
    8689   C) doCatOutput="yes";;
    8790   g) generate_tree_and_exit="yes" ;;
     91   G) gdb_server_mode="yes" ;;
    8892   i) interactive="yes";;
    8993   l) defaultLimit="$OPTARG";;
     
    118122bspNeedsDos2Unix="no"
    119123bspSimTrustedToExit="no"
     124bspSupportsGDBServerMode="no"
    120125
    121126for v in 4.10 4.9 4.8 4.7 ""
     
    342347  fi
    343348
     349  if [ ${bspSupportsGDBServerMode} = "yes" -a ${gdb_server_mode} = "yes" ];then
     350    test ${verbose} == 'yes' && echo ${runBSP} `runARGS ${toRun}`
     351    ${runBSP} `gdbServerARGS ${toRun}`
     352    exit 0
     353  fi
     354
    344355  if [ ${interactive} = "yes" ] ; then
    345356    test ${verbose} = "yes" && \
  • sim-scripts/skyeye-support

    rdb8b38d r1ba5b39  
    66
    77bspUsesGDBSimulator="no"
     8bspSupportsGDBServerMode="yes"
    89bspNeedsDos2Unix="yes"
     10bspGeneratesGDBCommands="no"
     11
    912if [ ${coverage} = "yes" ] ; then
    1013  bspRunFatal="yes"
    1114fi
    1215runBSP=skyeye
     16
     17bspGenerateGDBCommands()
     18{
     19  tar remote :12345
     20  load
     21}
    1322
    1423bspLimit()
Note: See TracChangeset for help on using the changeset viewer.