<div dir="ltr">gdb ./hello<br>GNU gdb (GDB) 7.0<br>Copyright (C) 2009 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br>

This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "arm-oe-linux-gnueabi".<br>

For bug reporting instructions, please see:<br><<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>...<br>Reading symbols from /var/volatile/tmp/hello...done.<br>(gdb) break 1<br>

Breakpoint 1 at 0x807c: file ../../../../../tmp/hello.pp, line 1.<br>(gdb) break 4<br>Note: breakpoint 1 also set at pc 0x807c.<br>Breakpoint 2 at 0x807c: file ../../../../../tmp/hello.pp, line 4.<br>(gdb) r<br>Starting program: /var/volatile/tmp/hello <br>

<br>Program received signal SIGILL, Illegal instruction.<br>0x00008abc in SYSTEM_FPC_CPUCODEINIT ()<br>(gdb) bt<br>#0  0x00008abc in SYSTEM_FPC_CPUCODEINIT ()<br>#1  0x0000fbbc in SYSTEM_init ()<br>#2  0x0000b268 in fpc_initializeunits ()<br>

#3  0x0000807c in $main () at ../../../../../tmp/hello.pp:3<br>(gdb) c<br>Continuing.<br><br>Program received signal SIGSEGV, Segmentation fault.<br>0x00000000 in ?? ()<br>(gdb) bt<br>#0  0x00000000 in ?? ()<br>#1  0x0000f670 in SYSTEM_REENABLE_SIGNAL$LONGINT$$BOOLEAN ()<br>

#2  0x00000000 in ?? ()<br>(gdb) c<br>Continuing.<br><br>Program exited with code 0330.<br><br>Thanks, <br><br>Ido<br clear="all"><a href="http://ik.homelinux.org/">http://ik.homelinux.org/</a><br>
<br><br><div class="gmail_quote">On Tue, Dec 1, 2009 at 8:31 PM, Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im"><br>
On 01 Dec 2009, at 19:09, ik wrote:<br>
<br>
> The program now execute but does not do anything:<br>
><br>
> program hello;<br>
><br>
> begin<br>
>  writeln('Hello World');<br>
> end.<br>
><br>
> it does not print anything on the screen.<br>
><br>
> strace only uses execv as the single executing line.<br>
><br>
> What am I missing here ?<br>
<br>
</div>A debugger and single stepping from the start of the program to see what fails where.<br>
<div><div></div><div class="h5"><br>
<br>
Jonas_______________________________________________<br>
fpc-devel maillist  -  <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-devel" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a><br>
</div></div></blockquote></div><br></div>