[fpc-devel] Re: Debugger for FPC
webpirat at mail.ru
Sat Mar 14 15:27:18 CET 2009
Jonas Maebe wrote:
> It's the DWARF version of the lineinfo unit. It's only required to get
> line numbers in backtraces when a program crashes. Apparently, it
> hasn't been ported to Win32 yet, but it's not required to debug. Just
> leave out the -gl parameter.
Ok, I tried to fix it by changing makefile in the rtl\win32 directory
but then gdb complained about dwarf offsets.
Anyway, I tried to test attached source file.
c:\programming\fpc\bin\i386-win32\ppc386.exe -O1 -gl test.pp
Here is my gdb log:
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i686-pc-mingw32"...
(gdb) break test.pp:8
Breakpoint 1 at 0x401427: file test.pp, line 8.
Starting program: C:\1/test.exe
[New thread 2024.0x1278]
Breakpoint 1, main () at test.pp:8
(gdb) print a
$1 = 4
(gdb) print z
No symbol "z" in current context.
What I'm doing wrong?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the fpc-devel