4.104.114.95
Last change
on this file since 5223d6b5 was
5223d6b5,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/01/08 at 19:13:13
|
2008-07-01 Joel Sherrill <joel.sherrill@…>
- psim-gdb: Change 4.8 to 4.9.
|
-
Property mode set to
100755
|
File size:
1.5 KB
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | # |
---|
3 | # Shell script to ease invocation of the powerpc simulator |
---|
4 | # |
---|
5 | # COPYRIGHT (c) 1989-2006. |
---|
6 | # On-Line Applications Research Corporation (OAR). |
---|
7 | # |
---|
8 | # The license and distribution terms for this file may be |
---|
9 | # found in found in the file LICENSE in this distribution or at |
---|
10 | # http://www.rtems.com/license/LICENSE. |
---|
11 | # |
---|
12 | # $Id$ |
---|
13 | # |
---|
14 | |
---|
15 | TREE_FILE=psim_tree.${LOGNAME} |
---|
16 | GDB_FILE=gdb_tree.${LOGNAME} |
---|
17 | |
---|
18 | # Build this user's device tree file |
---|
19 | echo "/#address-cells 2" > ${TREE_FILE} |
---|
20 | echo "/openprom/init/register/pvr 0xfffe0000" >> ${TREE_FILE} |
---|
21 | echo "/openprom/options/oea-memory-size 8388608" >> ${TREE_FILE} |
---|
22 | |
---|
23 | # These require the semaphore and shared memory device models. |
---|
24 | # echo "/shm@0xc0000000/reg 0xc0000000 0x10000" >> ${TREE_FILE} |
---|
25 | # echo "/shm@0xc0000000/key ${RTEMS_SHM_KEY}" >> ${TREE_FILE} |
---|
26 | # echo "/sem@0xc0010000/reg 0xc0010000 12" >> ${TREE_FILE} |
---|
27 | # echo "/sem@0xc0010000/key ${RTEMS_SHM_SEMAPHORE_KEY}" >> ${TREE_FILE} |
---|
28 | # echo "/sem@0xc0010000/value -1" >> ${TREE_FILE} |
---|
29 | # |
---|
30 | # Build this user's gdb script |
---|
31 | echo "tar sim -f ${TREE_FILE} ${GDB_DEBUG}" > ${GDB_FILE} |
---|
32 | echo "load" >> ${GDB_FILE} |
---|
33 | echo "b _Internal_error_Occurred" >> ${GDB_FILE} |
---|
34 | echo "b rtems_fatal_error_occurred" >> ${GDB_FILE} |
---|
35 | echo "b __assert" >> ${GDB_FILE} |
---|
36 | |
---|
37 | GDB=powerpc-rtems4.9-gdb |
---|
38 | |
---|
39 | ${GDB} -x ${GDB_FILE} $* |
---|
40 | |
---|
41 | exit $? |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.