#==============================================================
#
#  Abs:  EPICS RTEMS script to setup gdb on second lan port
#
#  Name: init_gdb.cmd
#
#  Side: Prior to loading this script the environment
#        variable GBD_IP must be defined
#        Link your IOC image without symbols. The "make" default
#        is to use -S which strips all symbols from the image. 
#        The easiest way is to have a "gdbmake" alias that sets
#        the OP_SYS_LDFLAGS symbol to NULL like this:
#
#        alias gdbmake="make 'OP_SYS_LDFLAGS='"
#
#       When you want to use GDB on an IOC image, build it with
#       "gdbmake" which prevents the symbols from being stripped
#       from the image. This of course has no run-time effect 
#       but just makes the image larger.
#
#     For a cheetsheet on using RTEMS from a mvme6100 power-pc
#     see the following URL (slaconly):
#
#      http://lcls-dev/tiki-index.php?page=LCLS+How-to+Setup+the+RTEMS+Debugger
#
#  Facility: LCLS CAMAC Controls
#
#  Auth: 28-May-2010, Kristi Luchini  (LUCHINI)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#--------------------------------------------------------------
#  Mod:
#        dd-mmm-yyyy, First Lastname  (USERNAME):        
#           comment
#
#==============================================================
#
# Load object for rtems gdb debbuger
ld("rtems-gdb-stub.obj")
rtems_gdb_start(200,0)

# End of script

