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

4.104.11
Last change on this file since 07001bab was 07001bab, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Apr 14, 2009 at 9:46:58 AM

adapt name of assert function for breakpoint

  • Property mode set to 100755
File size: 676 bytes
Line 
1
2## TODO: may want command line ability to turn on some psim tracing
3
4# Recognize special argument to force System V IPC support on
5use_sysv_ipc="auto"
6if [ X${1} = "X-psim_sysv" ] ; then
7  use_sysv_ipc="yes"
8  shift
9fi
10
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"
18  echo "b __assert_func"
19  echo "b C_exception_handler"
20  echo "printf \"Use run to start the RTEMS application\\n\""
21}
22
23GDB=${rtemsTarget}-gdb
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.