diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-03 18:37:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-03 18:37:51 +0000 |
commit | 001b41625e461404288c2e3ec7821992c06233ef (patch) | |
tree | 80052d3b071688cb86ce016a217241fea6e5254f /c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom | |
parent | 2008-09-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-001b41625e461404288c2e3ec7821992c06233ef.tar.bz2 |
2008-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom')
-rwxr-xr-x | c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom b/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom new file mode 100755 index 0000000000..672c02dc28 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom @@ -0,0 +1,24 @@ + +## TODO: may want command line ability to turn on some psim tracing + +## Generate the GDB Command Script +gen_gdb_script() +{ + echo "tar sim -f ${TREE_FILE}" + echo "load" + echo "b _Internal_error_Occurred" + echo "b rtems_fatal_error_occurred" + echo "b __assert" + echo "printf \"Use run to start the RTEMS application\\n\"" +} + +GDB=powerpc-rtems4.9-gdb + +gen_device_tree ${1} >${TREE_FILE} +gen_gdb_script >${GDB_FILE} + +${GDB} -x ${GDB_FILE} $* + +rm -f ${GDB_FILE} ${TREEFILE} +exit $? + |