[fpc-devel] Re: Debugger for FPC

Tomas Hajny XHajT03 at mbox.vol.cz
Sat Mar 14 15:31:54 CET 2009


On 14 Mar 09, at 21:27, Paul Ishenin wrote:
> 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:
> [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 
> <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 "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
> Continuing.
> 4
> [/log]
> 
> What I'm doing wrong?

Keeping -gl instead of -gw?

Tomas




More information about the fpc-devel mailing list