On 05 Oct 2009, at 15:27, Mark Morgan Lloyd wrote:
The fp IDE can drive libgdb to do straightforward debugging on x86
and ARM, there might be failures with complex stuff that I've not
been able to test. Those two platforms are no problem, the problems
are on PowerPC and SPARC.
You're really picking your fights, aren't you? :) The textmode IDE is
probably the least maintained part of FPC currently, and Linux/SPARC
is not exactly the most used release either :)
-----8<-----
$ gdb testC1A1
GNU gdb 6.8-debian
..
(gdb) dir ..
Source directories searched: /home/markMLl/sparc-2.2.4-6.3/..:$cdir:
$cwd
(gdb) run
Starting program: /home/markMLl/sparc-2.2.4-6.3/testC1A1
Hello, World!
Program received signal SIGSEGV, Segmentation fault.
0x00010138 in WRITELN2 (STR=Cannot access memory at address 0xd48656c
) at test.pas:11
11 IF ptr^ = 0 THEN
(gdb) bt
#0 0x00010138 in WRITELN2 (STR=Cannot access memory at address
0xd48656c
) at test.pas:11
#1 0x000101bc in main () at test.pas:18
(gdb)
----->8-----
Note that the code is correct: it's output the Hello World message
even though subsequently the debugger is confused.
d48656c = #13'Hel'. gdb on SPARC is trying to dereference the string
itself. I've fixed this in r13813 in trunk.
Jonas
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel