Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Florian Klaempfl
Am 12.10.2010 01:04, schrieb Willibald Krenn: Hi, On my Win64 machine, gdb kept crashing whenever I tried to step into fpc_raiseexception with an error saying that the reg '-1' wasn't defined. And yes, stabs info showed: 4943 FUN0 18700408710 66408

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Jonas Maebe
On 12 Oct 2010, at 09:25, Florian Klaempfl wrote: Afaik, stabs does not support x86-64 that's why it's probably never fixed/noticed. The problem is that for some reason, it's nevertheless the default for Win64. Jonas ___ fpc-devel maillist -

RE: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Pierre Free Pascal
Notice: This fix is absolutely necessary if you are working with Lazarus on Win64, as Lazarus automatically sets a breakpoint in fpc_raise... which then crashes gdb, which in turn crashes any running debugging session - in case an exception is raised. Of course it affects also all

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Jonas Maebe
On 12 Oct 2010, at 10:25, Pierre Free Pascal wrote: This means that indeed stabs and dwarf register number are equal, at least for GDB. The problem is that this means that we probably also need to distinguish between stabs32 and stabs64, as we already do for dwarf32 and dwarf64... There

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Willibald Krenn
Am 12.10.2010 09:51, schrieb Jonas Maebe: There is no stabs64 format, afaik. See http://sourceware.org/bugzilla/show_bug.cgi?id=9327 Just checked, this example is working fine on Win64: PS C:\source\bugs\lokals gdb test.exe GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc.

RE: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Pierre Free Pascal
-Message d'origine- De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- boun...@lists.freepascal.org] De la part de Jonas Maebe Envoyé : Tuesday, October 12, 2010 10:51 AM À : FPC developers' list Objet : Re: [fpc-devel] x86_64 stabs info - patch (sort of) On 12 Oct

RE: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Pierre Free Pascal
-Message d'origine- De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- boun...@lists.freepascal.org] De la part de Jonas Maebe Envoyé : Tuesday, October 12, 2010 10:00 AM À : FPC developers' list Objet : Re: [fpc-devel] x86_64 stabs info - patch (sort of) On 12 Oct

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Jonas Maebe
On 12 Oct 2010, at 11:49, Pierre Free Pascal wrote: -Message d'origine- De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- boun...@lists.freepascal.org] De la part de Jonas Maebe Envoyé : Tuesday, October 12, 2010 10:00 AM À : FPC developers' list Objet : Re: [fpc-devel]

RE: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Pierre Free Pascal
-Message d'origine- De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- boun...@lists.freepascal.org] De la part de Jonas Maebe Envoyé : Tuesday, October 12, 2010 11:56 AM À : FPC developers' list Objet : Re: [fpc-devel] x86_64 stabs info - patch (sort of) On 12 Oct

RE: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Pierre Free Pascal
-Message d'origine- De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- boun...@lists.freepascal.org] De la part de Jonas Maebe Envoyé : Tuesday, October 12, 2010 10:51 AM À : FPC developers' list Objet : Re: [fpc-devel] x86_64 stabs info - patch (sort of) On 12 Oct

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Jonas Maebe
On 12 Oct 2010, at 12:14, Pierre Free Pascal wrote: There is no stabs64 format, afaik. See http://sourceware.org/bugzilla/show_bug.cgi?id=9327 This is also not totally true: I heard recently that Apple has a 64-bit extension of the stabs debug format in

[fpc-devel] FPC 2.4.2 RC1 available

2010-10-12 Thread Marco van de Voort
Hello, We have placed the first release-candidate of the Free Pascal Compiler version 2.4.2 on our ftp-servers. You can help improve the upcoming 2.4.2 release by downloading and testing this release. If you want you can report what you have done here: http://wiki.freepascal.org/Testers_2.4.2

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Willibald Krenn
Am 12.10.2010 10:55, schrieb Jonas Maebe: It currently is because dwarf debug information generation for x86_64 is still much more buggy than stabs generation. Is it? I use it all the time on Mac OS X/x86-64 and Linux/x86-64, and it works fine. DWARF does not work on Win64: while dwarf3

[fpc-devel] Re: [Lazarus] FPC 2.4.2 RC1 available

2010-10-12 Thread Felipe Monteiro de Carvalho
Thank you very much, I was really waiting for this one =) By the way, this link doesn't work: ftp://freepascal.stack.nl/pub/fpc/beta/2.4.2-rc1/ -- Felipe Monteiro de Carvalho ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Jonas Maebe
On 12 Oct 2010, at 21:26, Willibald Krenn wrote: Am 12.10.2010 10:55, schrieb Jonas Maebe: It currently is because dwarf debug information generation for x86_64 is still much more buggy than stabs generation. Is it? I use it all the time on Mac OS X/x86-64 and Linux/x86-64, and it works

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Willibald Krenn
Am 12.10.2010 20:33, schrieb Jonas Maebe: dwarf2 debug information seems to be broken too. Keep this in mind: http://bugs.freepascal.org/view.php?id=15692 I don't know exactly what to conclude from this discussion. Are 32 bit pointers enough for WinPE? Then stabs would be fine anyways.

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Jonas Maebe
On 12 Oct 2010, at 21:55, Willibald Krenn wrote: Am 12.10.2010 20:33, schrieb Jonas Maebe: dwarf2 debug information seems to be broken too. Keep this in mind: http://bugs.freepascal.org/view.php?id=15692 I don't know exactly what to conclude from this discussion. Try using the

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Willibald Krenn
Am 12.10.2010 21:02, schrieb Jonas Maebe: I don't know exactly what to conclude from this discussion. Try using the -WB004 command line option. PS C:\source\bugs\exception del *.o PS C:\source\bugs\exception del *.exe PS C:\source\bugs\exception fpc -gw -WB004 .\project1.lpr PS

Re: [fpc-devel] x86_64 stabs info - patch (sort of)

2010-10-12 Thread Jonas Maebe
On 12 Oct 2010, at 22:31, Willibald Krenn wrote: PS C:\source\bugs\exception del *.o PS C:\source\bugs\exception del *.exe PS C:\source\bugs\exception fpc -gw -WB004 .\project1.lpr PS C:\source\bugs\exception gdb .\project1.exe (gdb) list invalid dwarf2 offset 504164 That seems like

Re: [fpc-devel] JSON Beautifier

2010-10-12 Thread Michael Van Canneyt
Hello, Just a short follow-up, to say that I've committed support (a bit later than planned) for FormatJSON() which has several options. Revision 16146. Function FormatJSON(Options : TFormatOptions = DefaultFormat; Indentsize : Integer = DefaultIndentSize) : TJSONStringType; Options:

[fpc-devel] JSON Beautifier

2010-10-12 Thread theo
Thank you Michael, great! There is one little problem: the right square bracket which is closing an array always goes to the first position (no indentation). And it's a matter of taste, if brackets and parenthesis should go to the same line. I've attached an example. The FormatJSON output

Re: [fpc-devel] FPC 2.4.2 RC1 available

2010-10-12 Thread Luiz Americo Pereira Camara
Marco van de Voort escreveu: Hello, We have placed the first release-candidate of the Free Pascal Compiler version 2.4.2 on our ftp-servers. It does not compile the following program It works with both 240 and 251 Luiz You can help improve the upcoming 2.4.2 release by downloading and

[fpc-devel] win64 dwarf patch

2010-10-12 Thread Willibald Krenn
Hi, After adding 'tf_dwarf_only_local_labels' to the flags in i_win.pas (line 105) dwarf2 seems to be working. (Even without -WB0040). Cheers, Willi ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] win64 dwarf patch

2010-10-12 Thread Willibald Krenn
Am 13.10.2010 01:40, schrieb Willibald Krenn: Hi, After adding 'tf_dwarf_only_local_labels' to the flags in i_win.pas (line 105) dwarf2 seems to be working. (Even without -WB0040). Additional remark: The -WB option is still needed, otherwise, e.g., 'disas' is not working correctly in