source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom @ 538583f

4.104.114.95
Last change on this file since 538583f was 538583f, checked in by Joel Sherrill <joel.sherrill@…>, on 09/05/08 at 21:33:20

2008-09-05 Joel Sherrill <joel.sherrill@…>

  • psim-gdb-bottom: Also break on C_exception_handler so we can see what caused the exception. This indicates an error in the program.
  • Property mode set to 100755
File size: 522 bytes
Line 
1
2## TODO: may want command line ability to turn on some psim tracing
3
4## Generate the GDB Command Script
5gen_gdb_script()
6{
7  echo "tar sim -f ${TREE_FILE}"
8  echo "load"
9  echo "b _Internal_error_Occurred"
10  echo "b rtems_fatal_error_occurred"
11  echo "b __assert"
12  echo "b C_exception_handler"
13  echo "printf \"Use run to start the RTEMS application\\n\""
14}
15
16GDB=powerpc-rtems4.9-gdb
17
18gen_device_tree ${1} >${TREE_FILE}
19gen_gdb_script       >${GDB_FILE}
20
21${GDB} -x ${GDB_FILE} $*
22
23rm -f ${GDB_FILE} ${TREEFILE}
24exit $?
25
Note: See TracBrowser for help on using the repository browser.