source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom @ 001b4162

4.104.114.95
Last change on this file since 001b4162 was 001b4162, checked in by Joel Sherrill <joel.sherrill@…>, on 09/03/08 at 18:37:51

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

  • Makefile.am, configure.ac: Rework psim scripts to share code for creating device trees and actually running the tests. Overhaul the device tree generated to always include a block of Flash and a Real-Time Clock. When running MP tests enable the shared memory and semaphore devices.
  • psim-bottom, psim-gdb-bottom, psim-gdb-top.in, psim-shared, psim-top.in, runtest-bottom, runtest-top.in: New files.
  • psim, psim-gdb, runtest: Removed.
  • Property mode set to 100755
File size: 491 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 "printf \"Use run to start the RTEMS application\\n\""
13}
14
15GDB=powerpc-rtems4.9-gdb
16
17gen_device_tree ${1} >${TREE_FILE}
18gen_gdb_script       >${GDB_FILE}
19
20${GDB} -x ${GDB_FILE} $*
21
22rm -f ${GDB_FILE} ${TREEFILE}
23exit $?
24
Note: See TracBrowser for help on using the repository browser.