[fpc-devel] ARM Illegal instruction debugging howto
ik
idokan at gmail.com
Tue Dec 1 19:36:27 CET 2009
gdb ./hello
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:
<http://www.gnu.org/software/gdb/bugs/>...
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.
(gdb) r
Starting program: /var/volatile/tmp/hello
Program received signal SIGILL, Illegal instruction.
0x00008abc in SYSTEM_FPC_CPUCODEINIT ()
(gdb) bt
#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
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x0000f670 in SYSTEM_REENABLE_SIGNAL$LONGINT$$BOOLEAN ()
#2 0x00000000 in ?? ()
(gdb) c
Continuing.
Program exited with code 0330.
Thanks,
Ido
http://ik.homelinux.org/
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.
>
>
> Jonas_______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20091201/e39bd07a/attachment.html>
More information about the fpc-devel
mailing list