Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-11

line info using dwarf with trunk no longer regognized by gdb

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

See http://forum.lazarus.freepascal.org/index.php/topic,18816.0.html

I did test myself. Same result on win32. (Run any part of the IDE debugger test suite). Tested versions of gdb 6.3 to 7.5

The filename is recognised (when sending >>info line "WatchePrg.pas":100<<). Sending a different filename leads to an error. But the line number is reported not to exist.
-symbol-list-lines for the unit returns empty

Exact same commands work with all other fpc versions (including fixes 2.6)

Reply by email

Martin
to Jonas Maebe
Jonas Maebe wrote 11 lines
On 11 Nov 2012, at 20:56, Martin wrote: > See http://forum.lazarus.freepascal.org/index.php/topic,18816.0.html > > I did test myself. Same result on win32. (Run any part of the IDE > debugger test suite). Tested versions of gdb 6.3 to 7.5 It works fine on Mac OS X and Linux, so it seems to be Windows-specific. Does it also happen with the external assembler and/or linker?

I tried with
fpc.exe -gw -O-1 TestPrg.pas
fpc.exe -gw -O-1 -Xe TestPrg.pas
fpc.exe -gw -O-1 -al -Xe TestPrg.pas

TestProg is at the end of the mail (Same As EnvPrg in lazarus/debugger/tests/GDBMI/TestApps

calling gdb with
c:\FPC\GDB\7.4-2\gdb.exe -i mi -ex "info line TestPrg.pas:10" -ex "info sources" TestPrg.exe

And then in gdb enter (did not find a way to put this one on command line): -symbol-list-lines TestPrg.pas

The filename is recognized (using other filenames gives an error "No source file named ..."). But gdb believes there are no lines.

program EnvPrg;
uses sysutils;
var
   s: String;
begin
   s := GetEnvironmentVariable('ETEST1');
   if s = 'ab123c' then
     writeln(1)
   else
     writeln(2);
end.

Reply by email