forked from Imagelibrary/rtems
* psim-bottom, psim-gdb-bottom, psim-shared, psim-top.in: Add ability to force psim configuration to include System V IPC devices even when the test does not appear to be multiprocessing. This is used by some RTEMS application developers for system simulation and could be used to simulate a framebuffer if a UNIX process mirrored the buffer.
34 lines
680 B
Plaintext
Executable File
34 lines
680 B
Plaintext
Executable File
|
|
## TODO: may want command line ability to turn on some psim tracing
|
|
|
|
# Recognize special argument to force System V IPC support on
|
|
if [ X${1} = "X-psim_sysv" ] ; then
|
|
use_sysv_ipc="yes"
|
|
shift
|
|
else
|
|
use_sysv_ipc="auto"
|
|
fi
|
|
|
|
## 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 "b C_exception_handler"
|
|
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 $?
|
|
|