4.104.115
Last change
on this file since 07001bab was
07001bab,
checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 04/14/09 at 09:46:58
|
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 |
---|
5 | use_sysv_ipc="auto" |
---|
6 | if [ X${1} = "X-psim_sysv" ] ; then |
---|
7 | use_sysv_ipc="yes" |
---|
8 | shift |
---|
9 | fi |
---|
10 | |
---|
11 | ## Generate the GDB Command Script |
---|
12 | gen_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 | |
---|
23 | GDB=${rtemsTarget}-gdb |
---|
24 | |
---|
25 | gen_device_tree ${1} >${TREE_FILE} |
---|
26 | gen_gdb_script >${GDB_FILE} |
---|
27 | |
---|
28 | ${GDB} -x ${GDB_FILE} $* |
---|
29 | |
---|
30 | rm -f ${GDB_FILE} ${TREEFILE} |
---|
31 | exit $? |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.