source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom @ 07001bab

4.104.115
Last change on this file since 07001bab was 07001bab, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 04/14/09 at 09:46:58

adapt name of assert function for breakpoint

  • Property mode set to 100755
File size: 676 bytes
RevLine 
[001b4162]1
2## TODO: may want command line ability to turn on some psim tracing
3
[c0b8d7b]4# Recognize special argument to force System V IPC support on
[0a65ad6]5use_sysv_ipc="auto"
[c0b8d7b]6if [ X${1} = "X-psim_sysv" ] ; then
7  use_sysv_ipc="yes"
8  shift
9fi
10
[001b4162]11## Generate the GDB Command Script
12gen_gdb_script()
13{
14  echo "tar sim -f ${TREE_FILE}"
15  echo "load"
16  echo "b _Internal_error_Occurred"
17  echo "b rtems_fatal_error_occurred"
[07001bab]18  echo "b __assert_func"
[538583f]19  echo "b C_exception_handler"
[001b4162]20  echo "printf \"Use run to start the RTEMS application\\n\""
21}
22
[0a65ad6]23GDB=${rtemsTarget}-gdb
[001b4162]24
25gen_device_tree ${1} >${TREE_FILE}
26gen_gdb_script       >${GDB_FILE}
27
28${GDB} -x ${GDB_FILE} $*
29
30rm -f ${GDB_FILE} ${TREEFILE}
31exit $?
32
Note: See TracBrowser for help on using the repository browser.