[fpc-devel] ARM Illegal instruction debugging howto
idokan at gmail.com
Tue Dec 1 19:36:27 CET 2009
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-oe-linux-gnueabi".
For bug reporting instructions, please see:
Reading symbols from /var/volatile/tmp/hello...done.
(gdb) break 1
Breakpoint 1 at 0x807c: file ../../../../../tmp/hello.pp, line 1.
(gdb) break 4
Note: breakpoint 1 also set at pc 0x807c.
Breakpoint 2 at 0x807c: file ../../../../../tmp/hello.pp, line 4.
Starting program: /var/volatile/tmp/hello
Program received signal SIGILL, Illegal instruction.
0x00008abc in SYSTEM_FPC_CPUCODEINIT ()
#0 0x00008abc in SYSTEM_FPC_CPUCODEINIT ()
#1 0x0000fbbc in SYSTEM_init ()
#2 0x0000b268 in fpc_initializeunits ()
#3 0x0000807c in $main () at ../../../../../tmp/hello.pp:3
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
#0 0x00000000 in ?? ()
#1 0x0000f670 in SYSTEM_REENABLE_SIGNAL$LONGINT$$BOOLEAN ()
#2 0x00000000 in ?? ()
Program exited with code 0330.
On Tue, Dec 1, 2009 at 8:31 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>wrote:
> On 01 Dec 2009, at 19:09, ik wrote:
> > The program now execute but does not do anything:
> > program hello;
> > begin
> > writeln('Hello World');
> > end.
> > it does not print anything on the screen.
> > strace only uses execv as the single executing line.
> > What am I missing here ?
> A debugger and single stepping from the start of the program to see what
> fails where.
> fpc-devel maillist - fpc-devel at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel