Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-30 Thread Jonas Maebe
On 29 Dec 2008, at 23:57, Jonas Maebe wrote: On 29 Dec 2008, at 23:10, dmitry boyarintsev wrote: compile line fpc -Aas -gw2 test.pas gdb test.exe ... (gdb) b test.pas:7 warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.) warning: (Internal error: pc 0x40144e in r

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-30 Thread Jonas Maebe
On 30 Dec 2008, at 09:38, Florian Klaempfl wrote: Jonas Maebe schrieb: On 29 Dec 2008, at 23:10, dmitry boyarintsev wrote: warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.) I got these warnings also on Mac OS X when I was initially on dwarf support there. Unfor

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-30 Thread dmitry boyarintsev
will try it tonight ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-30 Thread Florian Klaempfl
Jonas Maebe schrieb: > > On 29 Dec 2008, at 23:10, dmitry boyarintsev wrote: > >> compile line >> fpc -Aas -gw2 test.pas >> gdb test.exe >> ... >> (gdb) b test.pas:7 >> warning: (Internal error: pc 0x40144e in read in psymtab, but not in >> symtab.) >> >> warning: (Internal error: pc 0x40144e in

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-29 Thread dmitry boyarintsev
here you go (i've accidently deleted test.pas, and created new one, naming main.pas, but the code is the same) : (gdb) info line *0x40144e warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.) warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.) L

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-29 Thread Jonas Maebe
On 29 Dec 2008, at 23:10, dmitry boyarintsev wrote: compile line fpc -Aas -gw2 test.pas gdb test.exe ... (gdb) b test.pas:7 warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.) warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.) I got t

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-29 Thread dmitry boyarintsev
compile line fpc -Aas -gw2 test.pas gdb test.exe ... (gdb) b test.pas:7 warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.) warning: (Internal error: pc 0x40144e in read in psymtab, but not in symtab.) Breakpoint 1 at 0x40144e: file test.pas, line 7. ... break point wor

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-29 Thread Jonas Maebe
On 29 Dec 2008, at 21:16, dmitry boyarintsev wrote: gdb is able to set up break points, though warnings are still present. What kind of warnings? Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-29 Thread dmitry boyarintsev
i've also tried using external linker -Aas -Xe and it works too. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-29 Thread dmitry boyarintsev
thanks Florian and Jonas i've just did it, right before receiving your email. and it made it work. exe is compiled succesfully. gdb is able to set up break points, though warnings are still present. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-29 Thread Florian Klaempfl
dmitry boyarintsev schrieb: > Jonas, > I've added tf_dwarf_relative_addresses to system information for win32 > target and have recompiled the compiler. > so now whenether i'm using 'gw2' or 'gw3' compiler options i'm getting > test.pas(9,1) Fatal: Internal error 200404124 > > test.pas(9,1) line '

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-29 Thread dmitry boyarintsev
Jonas, I've added tf_dwarf_relative_addresses to system information for win32 target and have recompiled the compiler. so now whenether i'm using 'gw2' or 'gw3' compiler options i'm getting test.pas(9,1) Fatal: Internal error 200404124 test.pas(9,1) line 'end.' (see source is the at the first mail

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread Jonas Maebe
On 28 Dec 2008, at 17:22, dmitry boyarintsev wrote: all these command lines did not work fpc -Xe -gw2 test.pas fpc -Aas -gw2 test.pas fpc -Xe -Aas -gw2 test.pas in all three cases gdb returnes "invalid dwarf2 offset " Did you try with adding tf_dwarf_relative_addresses to the win32 target

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread dmitry boyarintsev
all these command lines did not work fpc -Xe -gw2 test.pas fpc -Aas -gw2 test.pas fpc -Xe -Aas -gw2 test.pas in all three cases gdb returnes "invalid dwarf2 offset " ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread Jonas Maebe
On 28 Dec 2008, at 16:35, dmitry boyarintsev wrote: the bug's been reported (#12872). if i try to fix the bug, should i first to look at PE file writting units? You could first try compiling with -Aas. If that solves the problem, then the bug is indeed in the internal assembler. If that

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread dmitry boyarintsev
the bug's been reported (#12872). if i try to fix the bug, should i first to look at PE file writting units? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread Jonas Maebe
On 28 Dec 2008, at 16:03, dmitry boyarintsev wrote: It works fine on at least Mac OS X and Linux. I don't know if anyone ever tested it on Windows. If it doesn't work there, it should probably be disabled for that target until someone fixes it (to avoid situations like yours from happening

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread dmitry boyarintsev
> It works fine on at least Mac OS X and Linux. I don't know if anyone ever > tested it on Windows. If it doesn't work there, it should probably be > disabled for that target until someone fixes it (to avoid situations like > yours from happening). this odd, i thought debug info (both dwarf and st

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread Jonas Maebe
On 28 Dec 2008, at 15:51, dmitry boyarintsev wrote: -gw2 does not work either, it gives out identical error message. is it possible that fpc does not generates dwarf2? btw, i'm using latest fpc trunk, and gdb v6.7.50 win32 It works fine on at least Mac OS X and Linux. I don't know if anyone

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread dmitry boyarintsev
-gw2 does not work either, it gives out identical error message. is it possible that fpc does not generates dwarf2? btw, i'm using latest fpc trunk, and gdb v6.7.50 win32 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

Re: [fpc-pascal] DWARF line info cannot be used gdb

2008-12-28 Thread Jonas Maebe
On 28 Dec 2008, at 15:33, dmitry boyarintsev wrote: i'm trying to use gdb to debug FPC compiled file with DWARF debug information. fpc -gw3 test.pas Dwarf3 is not yet supported by current released versions of gdb. Use dwarf2 (-gw2) instead. Jonas ___