[fpc-devel] Re: Debugger for FPC

Paul Ishenin 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:
C:\1>C:\programming\lazaraus-binaries\i386-win32\gdb\bin\gdb.exe test.exe
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.
(gdb) run
Starting program: C:\1/test.exe
[New thread 2024.0x1278]

Breakpoint 1, main () at test.pp:8
8         WriteLn(z);
(gdb) print a
$1 = 4
(gdb) print z
No symbol "z" in current context.
(gdb) continue

What I'm doing wrong?

Best regards,
Paul Ishenin.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.pp
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090314/b30abe02/attachment.ksh>

More information about the fpc-devel mailing list