Changeset 1ba5b39 in rtems-testing for sim-scripts/gdb-sim-run.in


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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" && \
Note: See TracChangeset for help on using the changeset viewer.