1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | In this directory, there are the following files: |
---|
6 | |
---|
7 | Makefile - Example Makefile file |
---|
8 | README - the file you are reading. |
---|
9 | hello.adb - simple hello world file |
---|
10 | init.c - RTEMS initialization thread which invokes the Ada main |
---|
11 | |
---|
12 | The following make stanza are included: |
---|
13 | |
---|
14 | all - This stanza builds the executable hello. |
---|
15 | |
---|
16 | run - This invokes the PowerPC Simulator (PSIM) on hello. |
---|
17 | |
---|
18 | gdb - This invokes gdb with the integrated PowerPC Simulator |
---|
19 | (PSIM) on hello. |
---|
20 | |
---|
21 | clean - This stanza removes all generated files. |
---|
22 | |
---|
23 | The tool directory must be in your path for this to work. |
---|
24 | |
---|
25 | SAMPLE SESSION WITH PSIM |
---|
26 | ======================== |
---|
27 | |
---|
28 | The following is a sample session with psim: |
---|
29 | |
---|
30 | $ gmake run |
---|
31 | |
---|
32 | /home/joel/gnat-3.10p/powerpc-rtems//bin/psim hello |
---|
33 | Hello World |
---|
34 | Hello World |
---|
35 | gmake: *** [run] Error 132 |
---|
36 | |
---|
37 | At this point, programs run under the powerpc-rtems-run command |
---|
38 | restart a second time. This is an known problem with the RTEMS PSIM |
---|
39 | Board Support Package. |
---|
40 | |
---|
41 | Note that the powerpc-rtems-run command has no interactive mode. |
---|
42 | |
---|
43 | |
---|
44 | SAMPLE SESSION WITH GDB |
---|
45 | ======================= |
---|
46 | |
---|
47 | The following is a sample session with sis: |
---|
48 | |
---|
49 | $ gmake gdb |
---|
50 | /home/joel/gnat-3.10p/powerpc-rtems//bin/psim-gdb hello |
---|
51 | GNU gdb 4.16.1a |
---|
52 | Copyright 1996 Free Software Foundation, Inc. |
---|
53 | GDB is free software, covered by the GNU General Public License, and you are |
---|
54 | welcome to change it and/or distribute copies of it under certain conditions. |
---|
55 | Type "show copying" to see the conditions. |
---|
56 | There is absolutely no warranty for GDB. Type "show warranty" for details. |
---|
57 | This GDB was configured as "--host=i486-linux --target=powerpc-unknown-eabi"... |
---|
58 | Connected to the simulator. |
---|
59 | (gdb) run |
---|
60 | Starting program: /usr1/rtems/work/tools_ada/example/hello |
---|
61 | Hello World |
---|
62 | (gdb) quit |
---|
63 | The program is running. Quit anyway (and kill it)? (y or n) y |
---|
64 | |
---|
65 | |
---|
66 | Note that the user typed "run" to start the executable and "quit" to |
---|
67 | exit the debugger. Other gdb commands function the same as when gdb |
---|
68 | is used natively. |
---|
69 | |
---|
70 | The program "psim-gdb" is a script which always invokes a command file |
---|
71 | to initialize the simulator and load the executable into the simulator's |
---|
72 | memory. |
---|
73 | |
---|
74 | |
---|