RE: [fpc-devel] New Windows gdb-binary

2011-10-03 Thread Joost van der Sluis
On Mon, 2011-10-03 at 16:40 +0200, 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 Joost van der Sluis > > Envoyé : lundi 3 octobre 2

RE: [fpc-devel] New Windows gdb-binary

2011-10-03 Thread Joost van der Sluis
On Sat, 2011-10-01 at 11:00 +0200, Pierre Free Pascal wrote: > Did you use the mingw 7.3 patch that handles > the windows style path containing ':'? No. > I recreated the patch below by doing a diff > from official GDB 7.3 release > and mingw7.3.2 sources. > > Without this, debug informati

Re: [fpc-devel] New Windows gdb-binary

2011-10-03 Thread Joost van der Sluis
On Sat, 2011-10-01 at 10:26 +0200, Florian Klämpfl wrote: > Am 30.09.2011 15:02, schrieb Joost van der Sluis: > > Please test this gdb-version, and tell me about your experiences. > > Especially Martin. ;) > > > > Oh, you can download it here: > &

Re: [fpc-devel] building fpc / fpmake and multicore cpu ?

2011-10-03 Thread Joost van der Sluis
On Sat, 2011-10-01 at 09:24 +0100, Martin wrote: > I noticed, when I build fpc, then I get cpu usage between 70% and 100%. > So it appears that both cores of my pentium are used. > > But when a package is compiled using fpmake, then it drops to 50%, so > apparently only one core is used? > > Is

Re: [fpc-devel] New Windows gdb-binary

2011-10-02 Thread Joost van der Sluis
On Sun, 2011-10-02 at 14:29 +0100, Martin wrote: > On 02/10/2011 14:05, Joost van der Sluis wrote: > > On Sat, 2011-10-01 at 09:08 +0200, Joost van der Sluis wrote: > >> On Sat, 2011-10-01 at 01:05 +0100, Martin wrote: > >>> Ok, seems to have big issues with st

Re: [fpc-devel] New Windows gdb-binary

2011-10-02 Thread Joost van der Sluis
On Sat, 2011-10-01 at 09:08 +0200, Joost van der Sluis wrote: > On Sat, 2011-10-01 at 01:05 +0100, Martin wrote: > > On 30/09/2011 23:23, Martin wrote: > > > On 30/09/2011 14:02, Joost van der Sluis wrote: > > >> Please test this gdb-version, and tell me about your

Re: [fpc-devel] New Windows gdb-binary

2011-10-01 Thread Joost van der Sluis
On Sat, 2011-10-01 at 01:05 +0100, Martin wrote: > On 30/09/2011 23:23, Martin wrote: > > On 30/09/2011 14:02, Joost van der Sluis wrote: > >> Please test this gdb-version, and tell me about your experiences. > >> Especially Martin. ;) > >> > >

Re: [fpc-devel] New Windows gdb-binary

2011-09-30 Thread Joost van der Sluis
On Fri, 2011-09-30 at 15:54 +0100, Martin wrote: > On 30/09/2011 15:45, Joost van der Sluis wrote: > > On Fri, 2011-09-30 at 21:47 +0800, Paul Ishenin wrote: > >> 30.09.2011 21:02, Joost van der Sluis wrote: > >>> Hi all, > >>> > >>> For all

Re: [fpc-devel] New Windows gdb-binary

2011-09-30 Thread Joost van der Sluis
On Fri, 2011-09-30 at 21:47 +0800, Paul Ishenin wrote: > 30.09.2011 21:02, Joost van der Sluis wrote: > > Hi all, > > > > For all those who are interested in new debug-features of fpc and gdb, I > > have cross-compiled a gdb-executable for Windows. > > > >

[fpc-devel] New Windows gdb-binary

2011-09-30 Thread Joost van der Sluis
Hi all, For all those who are interested in new debug-features of fpc and gdb, I have cross-compiled a gdb-executable for Windows. It's based on the Fedora-16 branch from the Archer project. But I added a few patches of my own, namely the patch to recognize methods, setting case-sensitivity off b

[fpc-devel] Calling virtual methods in GDB

2011-09-27 Thread Joost van der Sluis
Hi all, I've just committed a fix (r19253) which makes it possible to call virtual methods within GDB. (Or other Dwarf-debuggers, when they support that properly) Only problem is that when GDB is in Pascal mode, it won't work. I have written a patch for that (http://cygwin.com/ml/gdb/2011-09/msg0

Re: [fpc-devel] TField.Validate in FPC 2.6

2011-09-17 Thread Joost van der Sluis
On Sat, 2011-09-17 at 10:56 +0200, Michael Van Canneyt wrote: > > On Sat, 17 Sep 2011, Martin Schreiber wrote: > > > Hi, > > TField.SetData() in fixes_2_6 calls TField.Validate(). > > 2.4.4 does not, trunk neither. > > Strange that 2.6 does this if trunk does not ? > > > What are the plans for

Re: the feature request, that started the discussion [Re: Adding properties into existing stabs/dwarf; gdb readable workaround ? [[Re: [fpc-devel] Status and ideas about debug info (stabs, dwarf / dw

2011-09-16 Thread Joost van der Sluis
On Wed, 2011-09-14 at 10:29 +0100, Martin wrote: > So some points, that I would like to know: > > 1) I believe the general idea, of making a > property Counter: Integer read GetCounter > be encoded as a function of the object( in the same way as GetCounter > already is) is acceptable? > - S

Re: [fpc-devel] 0020225: issue examining pointer/array/record elements with GDB

2011-09-16 Thread Joost van der Sluis
On Thu, 2011-09-15 at 13:19 -0600, Seth Grover wrote: > Joost wrote: > > That should work. Did you compile using -gw3? > > > > I did, but it behaves even more strangely (I can't seem to print any > variables). However I'm not in the trunk, I'm using 2.4.4 (this is a > production environment) so ma

Re: [fpc-devel] Re: 0020225: issue examining pointer/array/record elements with GDB

2011-09-15 Thread Joost van der Sluis
On Thu, 2011-09-15 at 09:34 -0600, Seth Grover wrote: > Jonas wrote: > > The DWARF information is correct. Maybe Anton is using a GDB on a > > Fedora-based distribution. Fedora's GDB is built from the Archer > > branch. It's possible that this fixes another bug in GDB that is also > > triggered by

Re: [fpc-devel] bounty: FPC based debugger

2011-09-13 Thread Joost van der Sluis
On Tue, 2011-09-13 at 14:48 +0200, Michael Schnell wrote: > On 09/13/2011 01:22 PM, Jonas Maebe wrote: > > > > Don't insult people when you clearly don't have any experience > > whatsoever in working with them. > Sorry if I sounded impolite. I did not at all mean to insult them. On > the contrary

Re: [fpc-devel] bounty: FPC based debugger

2011-09-13 Thread Joost van der Sluis
On Tue, 2011-09-13 at 12:59 +0200, Michael Schnell wrote: > On 09/13/2011 11:06 AM, Jonas Maebe wrote: > > > > GDB is built for supporting multiple languages. E.g., its ADA support > > has been much better than its C++ support for a long time (although > > C++ support is getting fairly good nowad

Re: [fpc-devel] Calling methods from within gdb

2011-09-13 Thread Joost van der Sluis
On Mon, 2011-09-12 at 23:07 +0200, Jonas Maebe wrote: > On 12 Sep 2011, at 22:05, Joost van der Sluis wrote: > > > Does someone knows a trick how to make gdb call a method (function) from > > a class? > > It requires a patch to gdb. I'm fairly sure I already sent it

[fpc-devel] Calling methods from within gdb

2011-09-12 Thread Joost van der Sluis
Hi all, Does someone knows a trick how to make gdb call a method (function) from a class? When I have this class defined, compiled with dwarf2: (-gw3 gives an IE, I'll have a look at that too) type TMyClass = class public function Read: integer; end; ptype returns: (gdb) ptype aclass

Re: Adding properties into existing stabs/dwarf; gdb readable workaround ? [[Re: [fpc-devel] Status and ideas about debug info (stabs, dwarf / dwar3)]]

2011-09-12 Thread Joost van der Sluis
On Mon, 2011-09-12 at 20:31 +0200, Jonas Maebe wrote: > On 12 Sep 2011, at 20:20, Martin wrote: > > > On 12/09/2011 19:14, Martin wrote: > >> Currently properties that map to a field are already present in dwarf > >> (again why not in stabs?). > > Because Stabs is legacy and I don't want to spen

Re: [fpc-devel] Include files with double names

2011-09-07 Thread Joost van der Sluis
On Tue, 2011-09-06 at 21:58 +0200, Jonas Maebe wrote: > On 06 Sep 2011, at 21:48, Joost van der Sluis wrote: > > > Can someone reproduce this? And what to do now? I've even did a touch on > > the rtl/objpas/parser.inc, but that doesn't help. > > If you perform a

[fpc-devel] Include files with double names

2011-09-06 Thread Joost van der Sluis
Hi all, I've found a new problem with include-names with the same name. Please try the following in a freshly compiled svn-checkout. (This is on linux/x86_64, but the idea is clear) cd packages/libxml ppcx64 -FUunits/x86_64-linux -Fu../../rtl/units/x86_64-linux -Fisrc src/xmlxsdparser.pas The r

Re: [fpc-devel] New FPC target: JVM

2011-08-20 Thread Joost van der Sluis
On Sun, 2011-08-21 at 00:11 +0200, Hans-Peter Diettrich wrote: > A .NET or Dalvik backend is feasable as easy as a JVM backend. Question > is the use of such an code generator, without an RTL, FCL, debugger etc. As 'easy'? Do you have any idea how much work Jonas, one of the most experienced deve

Re: [fpc-devel] make fcl-base for arm-wince failure in fpc 2.7.1

2011-08-09 Thread Joost van der Sluis
On Mon, 2011-08-08 at 14:57 +0200, Vincent Snijders wrote: > It seems that the conversion of fcl-base to fpmake still has a glitch: Can you test with r18155? Joost. -- My Lazarus blog: http://www.lazarussupport.com/lazarus/weblog ___ fpc-devel mailli

Re: RE : [fpc-devel] Getting fpc to work on Solaris (11)

2011-07-11 Thread Joost van der Sluis
On Mon, 2011-07-11 at 19:59 +, Mark Morgan Lloyd wrote: > Joost van der Sluis wrote: > > On Mon, 2011-07-11 at 18:29 +0200, Ludo Brands wrote: > >>> If you add --verbose it'll print out the internal ld script. > >>> See what line 21 corresponds with

Re: RE : [fpc-devel] Getting fpc to work on Solaris (11)

2011-07-11 Thread Joost van der Sluis
On Mon, 2011-07-11 at 18:29 +0200, Ludo Brands wrote: > > > > > If you add --verbose it'll print out the internal ld script. > > See what line 21 corresponds with. > > > > > > I've attached the internal script for the gnu ld 2.21.1 on Solaris 10. > Try > /usr/bin/gld -s -L. -o test -T ld_i

Re: [fpc-devel] Getting fpc to work on Solaris (11)

2011-07-11 Thread Joost van der Sluis
On Mon, 2011-07-11 at 18:08 +0200, Ludo Brands wrote: > > Application name is test. (It's a hello world) > > > > /usr/bin/gld -s -L. -o test link.res > > result: > > /usr/bin/gld:built in linker script:21: syntax error > > > > If you add --verbose it'll print out the internal ld script. See what

Re: [fpc-devel] Getting fpc to work on Solaris (11)

2011-07-11 Thread Joost van der Sluis
On Mon, 2011-07-11 at 16:47 +0200, Ludo Brands wrote: > > > You need to get the gnu binutils from sunfreeware.com and set your > > > path to include /usr/local/bin. > > > > I have them installed. (Well, using 'pkg install > > gnu-binutils') Or else gld wouldn't be available at all. And > > ther

Re: [fpc-devel] Getting fpc to work on Solaris (11)

2011-07-11 Thread Joost van der Sluis
On Mon, 2011-07-11 at 15:52 +0200, Ludo Brands wrote: > You need to get the gnu binutils from sunfreeware.com and set your path to > include /usr/local/bin. I have them installed. (Well, using 'pkg install gnu-binutils') Or else gld wouldn't be available at all. And there is no '/usr/local/bin'?

[fpc-devel] Getting fpc to work on Solaris (11)

2011-07-11 Thread Joost van der Sluis
Hi all, I'm trying to set-up a VM with Solaris (x86_64). Problem is that fpc refuses to link applications. It complains that there is a syntax error in the build-in linker scripts. How that's possible, I don't know. When I use -T, so that the default linker scripts are not used, linking goes wel

[fpc-devel] divide bcd's

2011-06-14 Thread Joost van der Sluis
Hi all, Dividing BCD's doesn't go wel: 100/1=10 100/2=overflow 1007/5=overflow It's all in this function in the FmtBCD unit: procedure BCDDivide ( const Dividend, Divisor : tBCD; var BCDout : tBCD ); I've tried to understand how the code

Re: wrong detection of inUnix ?? [Re: [fpc-devel] fcl-WEB build broken]

2011-06-11 Thread Joost van der Sluis
On Fri, 2011-06-10 at 23:31 +0200, Jonas Maebe wrote: > On 10 Jun 2011, at 23:01, Martin wrote: > > > On 10/06/2011 21:54, Jonas Maebe wrote: > >> On 10 Jun 2011, at 22:44, Martin wrote: > >> > >> Removing all stuff from it is what is causing the problem. The OS > >> detection is based on checki

[fpc-devel] Defenition of destructor behind property

2011-06-09 Thread Joost van der Sluis
Hi all, This construct is accepted by the compiler: Tdm = class(TDataModule) IBConnection1: TIBConnection; procedure DataModuleCreate(Sender: TObject); private function GetOnderdelen: TXMLDocument; public property Onderdelen: TXMLDocument read GetOnderdelen; destructor D

Re: [fpc-devel] Inserting first record

2011-06-09 Thread Joost van der Sluis
On Thu, 2011-06-09 at 11:49 +0200, LacaK wrote: > Here is attached debug output with {$DEFINE DSDebug}. > It seems, that exception is related to Append/Insert (it does not depend > if dataset is empty before or not) followed by accesing OldValue Can't you just post the backtrace? Joost. -- My

Re: [fpc-devel] Fppkg questions

2011-05-24 Thread Joost van der Sluis
On Sun, 2011-05-22 at 18:22 +0200, Darius Blaszyk wrote: > On May 22, 2011, at 6:04 PM, Michael Van Canneyt wrote: > > > >> While working on the lazarus GUI I could not find evidence that fppkg is > >> capable of supporting multiple repositories. As far as I can tell the > >> mirrors.xml is alwa

Re: [fpc-devel] Latest FPC SVN , package fpmkunit crosscompiling failure

2011-05-14 Thread Joost van der Sluis
On Sat, 2011-05-14 at 11:47 -0700, ABorka wrote: > Latest FPC SVN 17459: > Doing a "make all OS_TARGET=win64 CPU_TARGET=x86_64" crosscompiling with > 32bit FPC gives the following error: > > = > make -C fpmkunit bootstrap > make[3]: Entering directory `c:/fpc_svn/packages/fpmkunit' >

Re: [fpc-devel] fppkg question

2011-05-14 Thread Joost van der Sluis
On Fri, 2011-05-13 at 13:18 +0200, Michael Van Canneyt wrote: > > On Fri, 13 May 2011, Darius Blaszyk wrote: > > > > > On May 13, 2011, at 1:01 PM, Michael Van Canneyt wrote: > > > >> > >> > >> On Fri, 13 May 2011, Darius Blaszyk wrote: > >> > > All this info is supposed to be output in XML f

Re: [fpc-devel] SQLite and ftFmtBCD

2011-05-10 Thread Joost van der Sluis
On Tue, 2011-05-10 at 12:39 +0200, LacaK wrote: > Hi Joost (and others also ;-), > > I comment your question about > http://bugs.freepascal.org/view.php?id=18809 here. > (because I do not know what comment here and what in bug tracker) > > I see problem in fact, that AsString returns number form

Re: [fpc-devel] Re: Can't compile at revision: 17417

2011-05-09 Thread Joost van der Sluis
On Mon, 2011-05-09 at 10:14 -0300, Marcos Douglas wrote: > On Mon, May 9, 2011 at 10:04 AM, Joost van der Sluis wrote: > > > > On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: > > > On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas wrote: > > > > > >

Re: [fpc-devel] Re: Can't compile at revision: 17417

2011-05-09 Thread Joost van der Sluis
On Mon, 2011-05-09 at 07:47 -0300, Marcos Douglas wrote: > On Sun, May 8, 2011 at 5:19 PM, Marcos Douglas wrote: > > > > I resolved. Path in attachment (copy from /trunk). > > > > Hello, somebody can confirm this, please? A quick look on your patch is that you want to include the 32-bit odbc dri

Re: [fpc-devel] fcl-web is not copied by make install

2011-04-09 Thread Joost van der Sluis
On Sat, 2011-04-09 at 12:43 -0700, ABorka wrote: > On 4/9/2011 11:26, Joost van der Sluis wrote: > > On Sat, 2011-04-09 at 00:22 -0700, ABorka wrote: > >> Is it intentional that the fcl-web package is not copied when "make > >> install" is called? > >>

Re: [fpc-devel] make clean does not delete the fcl-web units

2011-04-09 Thread Joost van der Sluis
On Sat, 2011-04-09 at 13:05 -0700, ABorka wrote: > Just like the "make install" does not copy the FCL-web units to the > right place, "make clean" does not remove them either. Here is the output: > > . > . > . > C:/pp/bin/i386-win32/make.EXE -C fcl-web distclean > make.EXE[2]: Entering directory

Re: [fpc-devel] fcl-web is not copied by make install

2011-04-09 Thread Joost van der Sluis
On Sat, 2011-04-09 at 00:22 -0700, ABorka wrote: > Is it intentional that the fcl-web package is not copied when "make > install" is called? > "make all" compiles the units properly, they are just not copied by > "make install". Are you sure? Which files do you think are not copied? Do you cross

Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Joost van der Sluis
On Wed, 2011-04-06 at 13:40 +0400, Sergei Gorelkin wrote: > 06.04.2011 12:56, Joost van der Sluis пишет: > >> Another disaster occurs when I try to use the same source tree from > >> different OSes. > >> Say first I build in Linux, it successfully creates the

Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Joost van der Sluis
On Sun, 2011-04-03 at 03:51 +0400, Sergei Gorelkin wrote: > On 02.04.2011 01:15, Joost van der Sluis wrote: > > Hi all, > > > > I've just committed a change in the Makefiles for the fcl-web package. > > The Makefile now calls fpmake to build and install the pack

Re: [fpc-devel] Changes in Makefile-system

2011-04-06 Thread Joost van der Sluis
On Wed, 2011-04-06 at 12:28 +0400, Sergei Gorelkin wrote: > 02.04.2011 1:15, Joost van der Sluis пишет: > > Hi all, > > > > I've just committed a change in the Makefiles for the fcl-web package. > > The Makefile now calls fpmake to build and install the package. &g

Re: [fpc-devel] make error in fcl-web

2011-04-05 Thread Joost van der Sluis
On Sun, 2011-04-03 at 21:11 +0100, Martin wrote: > On 03/04/2011 20:59, Martin wrote: > > On 03/04/2011 20:50, Martin wrote: > >> (w32 / vista) > >> I tried to recompile fpc trunk, it starts up fine, until it comes to > >> fcl-web. I copied the last lines of output to the end of the mail > >> > >>

Re: [fpc-devel] Changes in Makefile-system

2011-04-05 Thread Joost van der Sluis
On Tue, 2011-04-05 at 08:11 +0200, Jonas Maebe wrote: > On 02 Apr 2011, at 15:35, Joost van der Sluis wrote: > > > Done. Can someone who actually knows how to do that trigger a retry of a > > testsuite-run, and a new testsuite-mail? > > Building still fails on darw

Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Joost van der Sluis
On Sat, 2011-04-02 at 14:40 +0200, Joost van der Sluis wrote: > On Sat, 2011-04-02 at 11:44 +0200, Jonas Maebe wrote: > > On 02 Apr 2011, at 11:35, Michael Van Canneyt wrote: > > > > > On Sat, 2 Apr 2011, Jonas Maebe wrote: > > > > > >> It broke the

Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Joost van der Sluis
On Sat, 2011-04-02 at 11:44 +0200, Jonas Maebe wrote: > On 02 Apr 2011, at 11:35, Michael Van Canneyt wrote: > > > On Sat, 2 Apr 2011, Jonas Maebe wrote: > > > >> It broke the compilation of 2.5.1 on all tested platforms last night. > >> Here's the error I got on Darwin/ppc: > >> > >> make -C f

Re: [fpc-devel] Changes in Makefile-system

2011-04-02 Thread Joost van der Sluis
On Sat, 2011-04-02 at 10:50 +0200, Michael Van Canneyt wrote: > > On Fri, 1 Apr 2011, Joost van der Sluis wrote: > > > Hi all, > > > > I've just committed a change in the Makefiles for the fcl-web package. > > The Makefile now calls fpmake to build and ins

[fpc-devel] Changes in Makefile-system

2011-04-01 Thread Joost van der Sluis
Hi all, I've just committed a change in the Makefiles for the fcl-web package. The Makefile now calls fpmake to build and install the package. It's a first test, so please try and report any problems you have when building the fcl-web package. (Or all packages, or just a complete fpc-checkout) I'

Re: [fpc-devel] Implementing TFmtBCDField - ftFmtBCD and SQLite

2011-04-01 Thread Joost van der Sluis
On Fri, 2011-04-01 at 11:13 +0200, LacaK wrote: > > Simply said: So Sqlite doesn't support real BCD values. > Yes, SQLite does not support them native Then it's up to the 'user' (in our case the user is a programmer) to implement workarounds. If we add some work-around, nobody will know that that

Re: [fpc-devel] The future of fpmake

2011-03-31 Thread Joost van der Sluis
On Thu, 2011-03-31 at 17:47 +0200, dhkblas...@zeelandnet.nl wrote: > > Thisnfeature is already there. When you use fpmake directly: -f, if > > you use > > fppkg (what I would recommend): fppkg -c. > > Thanks, I will have a look how it works. I'll try to document it on the > wiki. > > On the

Re: [fpc-devel] The future of fpmake

2011-03-31 Thread Joost van der Sluis
On Thu, 2011-03-31 at 15:41 +0200, Jonas Maebe wrote: > On 31 Mar 2011, at 14:42, Marco van de Voort wrote: > At least the package I referred to (univint) tends to change > significantly over time. The Mac OS X 10.6 SDK split a bunch of > headers and removed others compared to previous version

Re: [fpc-devel] The future of fpmake

2011-03-31 Thread Joost van der Sluis
On Wed, 2011-03-30 at 17:09 +0200, Darius Blaszyk wrote: > A couple of things that come to mind: Note that you can build your own add-ins. I used it to build a Lazarus-add-in, so that you can install Lazarus-components. It is not ideal yet, but you can use this approach to add functionality, with

Re: [fpc-devel] The future of fpmake

2011-03-31 Thread Joost van der Sluis
On Wed, 2011-03-30 at 21:19 +0200, Darius Blaszyk wrote: > On Mar 30, 2011, at 9:08 PM, Michael Van Canneyt wrote: > >> On Mar 30, 2011, at 5:31 PM, michael.vancann...@wisa.be wrote: > >> > - managing debug/release builds (also cross-compiling) > >>> > >>> What is failing in the current syst

Re: [fpc-devel] Implementing TFmtBCDField - ftFmtBCD and SQLite

2011-03-31 Thread Joost van der Sluis
On Thu, 2011-03-24 at 09:43 +0100, LacaK wrote: > after doing some test with new implementation of TFmtBCDField for > TSQLite3Connection connector I encounter this problem: > > When you declare in SQLite some column as NUMERIC or DECIMAL then this > column will have NUMERIC affinity. > CREATE TA

Re: [fpc-devel] TFieldDef.Size vs TField.Size

2011-02-24 Thread Joost van der Sluis
On Thu, 2011-02-24 at 12:59 +0100, LacaK wrote: > if you can inform about your plans, order of tasks etc. ... it will be > welcomed The order.. well, that's difficult.. What comes first, comes first. :) > if I can help you, let me know ... for example I have fix for > TODBCConnection.SetParamete

Re: [fpc-devel] TFieldDef.Size vs TField.Size

2011-02-24 Thread Joost van der Sluis
Please, be patient. I'm working on it, as you can see in the bug reports and commits. As I said earlier, widestringfields aren't available in fpc yet. Someone wrote some code for it, but it is never properly tested and probably only worked by accident. mse is another story, they have their own im

Re: [fpc-devel] TFmtBCDField

2011-02-22 Thread Joost van der Sluis
On Mon, 2011-02-21 at 09:22 +0100, LacaK wrote: > 1. VarFMTBcdCreate() should already work, so: Done > 2. VarToBCD() is already implemented, so: Done > 3. BCDToStrF there is waiting patch > http://bugs.freepascal.org/view.php?id=18388 if applied, then also can > be removed comments in procedu

[fpc-devel] TryStrToBCD inverted

2011-02-20 Thread Joost van der Sluis
Hi all, Am I the only one who finds it strange that TryStrToBCD returns false when it succeeds, and true when it fails? The Delphi documentation says otherwise. I don't understand the code, but I can revert the true/false logic, and a quick test seems to work. But it will imply backwards incompa

Re: [fpc-devel] ExpandFilename bug?

2011-02-17 Thread Joost van der Sluis
On Thu, 2011-02-17 at 12:44 +0100, Joost van der Sluis wrote: > On Wed, 2011-02-16 at 18:54 +0100, Tomas Hajny wrote: > > On Wed, February 16, 2011 17:34, Joost van der Sluis wrote: > > > > > > Hi Joost, > > > > > ExpandFileName('c:\pp') on

Re: [fpc-devel] ExpandFilename bug?

2011-02-17 Thread Joost van der Sluis
On Wed, 2011-02-16 at 18:54 +0100, Tomas Hajny wrote: > On Wed, February 16, 2011 17:34, Joost van der Sluis wrote: > > > Hi Joost, > > > ExpandFileName('c:\pp') on windows returns the current directory. Is > > this 'as designed' or a bug? ('c

[fpc-devel] ExpandFilename bug?

2011-02-16 Thread Joost van der Sluis
Hi all, ExpandFileName('c:\pp') on windows returns the current directory. Is this 'as designed' or a bug? ('c:\pp' does exist) Joost ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] fcl-db bugs/improvements/patches

2011-02-16 Thread Joost van der Sluis
On Wed, 2011-02-16 at 13:41 +0100, LacaK wrote: > >> 4. http://bugs.freepascal.org/view.php?id=14944 > >> This fix adds support for transactions in ODBCConnection Adding transactions so close to a release is not a good idea, imho. It could be added in trunk, though. But first run the testsuite wit

Re: [fpc-devel] fcl-db bugs/improvements/patches

2011-02-16 Thread Joost van der Sluis
On Wed, 2011-02-16 at 11:59 +0100, michael.vancann...@wisa.be wrote: > > On Wed, 16 Feb 2011, Joost van der Sluis wrote: > > > On Wed, 2011-02-16 at 11:30 +0100, michael.vancann...@wisa.be wrote: > >> I will look at them today. > > > > They all need improvemen

Re: [fpc-devel] fcl-db bugs/improvements/patches

2011-02-16 Thread Joost van der Sluis
On Wed, 2011-02-16 at 11:30 +0100, michael.vancann...@wisa.be wrote: > I will look at them today. They all need improvement or a better review or testcases or break backwards compatibility. Joost. ___ fpc-devel maillist - fpc-devel@lists.freepascal

[fpc-devel] Unit compiled twice?

2011-02-12 Thread Joost van der Sluis
Hi all, Isn't this output strange? webpage.pp is compiled twice? (if you want to reproduce this, try 'fppkg build' in packages/fcl-web) [joostloc@wsjoost fcl-web]$ /home/joost/fpc-trunk/bin/ppc386 -Twin32 -FUunits/i386-win32 src/base/webpage.pp Free Pascal Compiler version 2.5.1 [2011/02/10] fo

Re: [fpc-devel] Attn Joost: the ampersand in dwarf for var-param

2011-01-14 Thread Joost van der Sluis
On Fri, 2011-01-14 at 21:27 +, Martin wrote: > Been to quick... > Found the answer I though you'd noticed this earlier. I also wrote it in one of the mails last week? > But it seems that now, even in dwarf-3 objects are treated as pointer > again? (I can happily live with that. I just want

Re: Bug dwarf3 / fpc / gdb Re: dwarf3 and others too [Re: [fpc-devel] Dwarf3 and the encoding of classes]

2011-01-14 Thread Joost van der Sluis
On Fri, 2011-01-14 at 18:47 +, Martin wrote: > On 11/01/2011 09:28, Joost van der Sluis wrote: > > > > Same for variants and the enumerations. Your input is valuable, though. > > Maybe better to open bug-reports for the variants and enumerations. So > > it won'

Re: Re[2]: [fpc-devel] TStringField, String and UnicodeString and UTF8String

2011-01-13 Thread Joost van der Sluis
On Thu, 2011-01-13 at 15:55 +0100, José Mejuto wrote: > Hello FPC, > > Thursday, January 13, 2011, 2:58:30 PM, you wrote: > > JvdS> Then that option has to be added. I think it's already possible but you > JvdS> simply don't know how. (Sql-Server is ODBC only, so that one is fixed. > JvdS> For fi

Re: [fpc-devel] Dwar2 changed?

2011-01-13 Thread Joost van der Sluis
On Thu, 2011-01-13 at 11:00 +, Martin wrote: > On 13/01/2011 07:45, Joost van der Sluis wrote: > > > >> >> TCmdLineDebugger.SendCmdLn "-data-evaluate-expression > >> ^^shortstring(^POINTER($eax)^+12)^^" > >> << TCmdLineDebugger.

Re: Re[2]: [fpc-devel] TStringField, String and UnicodeString and UTF8String

2011-01-13 Thread Joost van der Sluis
On Thu, 2011-01-13 at 10:32 +0100, José Mejuto wrote: > Hello FPC, > > Thursday, January 13, 2011, 10:03:02 AM, you wrote: > > >> ODBC 3.5 was launched around 2000-2001. > L> But this approach will require changes in packages/odbc/src/odbcsql.inc > L> like, does not ?: > L> -pointer(SQLGetDat

Re: [fpc-devel] TStringField, String and UnicodeString and UTF8String

2011-01-13 Thread Joost van der Sluis
On Thu, 2011-01-13 at 09:49 +0100, LacaK wrote: > So IMHO there must be: > 1. allocated space in record buffer in size 4*TFieldDef.Size+1 > 2. redefine meaning of Size property (as number of bytes not > characters) and create fielddefs with Size*4 Yes, those are the possible solutions. Good thi

Re: [fpc-devel] TStringField, String and UnicodeString and UTF8String

2011-01-13 Thread Joost van der Sluis
On Thu, 2011-01-13 at 09:15 +0100, LacaK wrote: > > > Didn't I explain this to you and others a few times? > > > ;-) If so, then please excuse me > > > The database-components itself are encoding-agnostic. This means: > > encoding in = encoding out. > > > > So it is up to the developer what c

Re: [fpc-devel] Dwar2 changed?

2011-01-12 Thread Joost van der Sluis
On Wed, 2011-01-12 at 23:52 +, Martin wrote: > Has dwarf 2 changed ? Yes > with trunk ( I updated from a few month back, to today), I no longer get > the classname of an exception (stabs is fine, but dwarf now fails) Well, passing variables to procedures by reference has different Dwarf-de

Re: [fpc-devel] String and UnicodeString and UTF8Stringt

2011-01-12 Thread Joost van der Sluis
On Wed, 2011-01-12 at 14:59 +0100, LacaK wrote: > > No. It is mandatory that you send/receive UTF8 to/from GUI LCL > > elements. > As LCL elements are using TStringField.Text property, then this property > should return UTF8String, right (not AnsiString in ANSI code page) ? > If yes, then also T

Re: [fpc-devel] String and UnicodeString and UTF8Stringt

2011-01-12 Thread Joost van der Sluis
On Wed, 2011-01-12 at 11:02 +0100, LacaK wrote: > Yes, this is not primary question of database side, but db client > library api, which is used by SQLConnector to retrieve data. > For example in ODBC we use SQLGetData in LoadField method to retrieve > data from odbc interface. > And for example

Re: [fpc-devel] String and UnicodeString and UTF8Stringt

2011-01-12 Thread Joost van der Sluis
On Wed, 2011-01-12 at 09:45 +0100, LacaK wrote: > Sven Barth wrote / napísal(a): > > Am 12.01.2011 07:16, schrieb LacaK: > >> P.S. I still does not understand, how can things work correctly if LCL > >> expect that all AnsiStrings (String) are UTF8Strings, byt RTL/FCL does > >> not strictly follow

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-12 Thread Joost van der Sluis
On Wed, 2011-01-12 at 12:23 +, Martin wrote: > On 12/01/2011 12:20, Joost van der Sluis wrote: > > > > > >> What are the chances for that to be fixed in > > In what...? > > > Strange. Some of my mail didn't make it... > > What are the c

Re: [fpc-devel] Offset and size of .note.GNU-stack section in object files

2011-01-12 Thread Joost van der Sluis
On Wed, 2011-01-12 at 13:22 +0100, Jonas Maebe wrote: > On 12 Jan 2011, at 13:12, Joost van der Sluis wrote: > > > I saw that the offset of the section behind the .note.GNU-stack > > section > > has it's offset increased by one in comparison to the offset of > &g

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-12 Thread Joost van der Sluis
On Wed, 2011-01-12 at 12:05 +, Martin wrote: > On 12/01/2011 11:53, Joost van der Sluis wrote: > > Well, the version I use has version 7.2.50.20110107-cvs. But those > > version-numbers are a mess. Especially since Fedora in fact uses a fork > > of gdb (Archer) but it ha

[fpc-devel] Offset and size of .note.GNU-stack section in object files

2011-01-12 Thread Joost van der Sluis
Hi all, When working on bug 16545, I needed some reference so I did a 'readelf -S' on a random .o file created by fpc. I saw that the offset of the section behind the .note.GNU-stack section has it's offset increased by one in comparison to the offset of the .note.GNU-stack section. But the lengt

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-12 Thread Joost van der Sluis
On Wed, 2011-01-12 at 11:23 +, Martin wrote: > On 12/01/2011 10:39, Joost van der Sluis wrote: > > That is bad news, because it seems like it that the > > final-case-sensitivity solution will be that the case-sensitive flag is > > used to control the behavior. But

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-12 Thread Joost van der Sluis
On Tue, 2011-01-11 at 22:12 +, Martin wrote: > On 11/01/2011 21:39, Joost van der Sluis wrote: > > On Tue, 2011-01-11 at 15:59 +, Martin wrote: > >> On 11/01/2011 09:54, Joost van der Sluis wrote: > >>> There's a new version at that location no

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-11 Thread Joost van der Sluis
On Tue, 2011-01-11 at 15:59 +, Martin wrote: > On 11/01/2011 09:54, Joost van der Sluis wrote: > > > > There's a new version at that location now. This one has a better > > case-sensitivity patch and support for viewing class-constants. For > > those interes

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-11 Thread Joost van der Sluis
On Tue, 2011-01-11 at 17:02 +0700, Paul Ishenin wrote: > 11.01.2011 16:54, Joost van der Sluis wrote: > >>>>> http://www.lazarussupport.com/downloads/gdb_win32_fedora15_with_pascal_patches.zip > >>>>> > >>>> That one just crashed, when I test

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-11 Thread Joost van der Sluis
On Mon, 2011-01-10 at 20:43 +, Martin wrote: > On 10/01/2011 20:26, Joost van der Sluis wrote: > > On Mon, 2011-01-10 at 01:12 +, Martin wrote: > >> On 03/01/2011 11:30, Joost van der Sluis wrote: > >>> I also promised to build a Windows-gdb binary with th

Re: dwarf3 and others too [Re: [fpc-devel] Dwarf3 and the encoding of classes]

2011-01-11 Thread Joost van der Sluis
On Tue, 2011-01-11 at 00:23 +, Martin wrote: > I did some more test., I will check in later... > > None of the old dwarf or stabs seems to define the <> operator for classes. > p Foo<>Bar > gives unknown symbold Foo<>Bar > So it does take it as one symbol? > > > nil > nil is not defined ever

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-10 Thread Joost van der Sluis
On Mon, 2011-01-10 at 20:43 +, Martin wrote: > On 10/01/2011 20:26, Joost van der Sluis wrote: > > On Mon, 2011-01-10 at 01:12 +, Martin wrote: > >> On 03/01/2011 11:30, Joost van der Sluis wrote: > >>> I also promised to build a Windows-gdb binary with th

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-10 Thread Joost van der Sluis
On Mon, 2011-01-10 at 01:12 +, Martin wrote: > On 03/01/2011 11:30, Joost van der Sluis wrote: > > I also promised to build a Windows-gdb binary with the latest Dwarf-3 > > patches from the Archer-project. This can be downloaded here: > > > > http://www.l

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-09 Thread Joost van der Sluis
On Sun, 2011-01-09 at 18:21 +0100, Jonas Maebe wrote: > On 09 Jan 2011, at 17:56, Joost van der Sluis wrote: > > > I've done some more tests with -gw2. 'p classinstance' gives you the > > address of the class-instance and not the values within the class. > >

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-09 Thread Joost van der Sluis
On Sun, 2011-01-09 at 17:50 +, Martin wrote: > On 09/01/2011 16:56, Joost van der Sluis wrote: > > > >>> This has nothing to do with gdb, but with the debug-information that > >>> fpc > >>> (-gw3) generates. Now it handles classes as if they are n

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-09 Thread Joost van der Sluis
On Mon, 2011-01-03 at 13:38 +0100, Jonas Maebe wrote: > On 03 Jan 2011, at 13:29, Joost van der Sluis wrote: > > > This has nothing to do with gdb, but with the debug-information that > > fpc > > (-gw3) generates. Now it handles classes as if they are not > > p

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-03 Thread Joost van der Sluis
On Mon, 2011-01-03 at 14:43 +0100, Marco van de Voort wrote: > > And casting(?), e.g. for stuff like tlist where there are pointers<> > class casts. Can you create a simple example to test this? Joost. ___ fpc-devel maillist - fpc-devel@lists.freepa

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-03 Thread Joost van der Sluis
On Mon, 2011-01-03 at 13:38 +0100, Jonas Maebe wrote: > On 03 Jan 2011, at 13:29, Joost van der Sluis wrote: > > > This has nothing to do with gdb, but with the debug-information that > > fpc > > (-gw3) generates. Now it handles classes as if they are not > > p

Re: [fpc-devel] Dwarf3 and the encoding of classes

2011-01-03 Thread Joost van der Sluis
On Mon, 2011-01-03 at 19:12 +0700, Paul Ishenin wrote: > 03.01.2011 18:30, Joost van der Sluis wrote: > > There are a few issues, though: > > - If a class is not assigned (=nil), gdb shows the message that the > > class is not assigned. It doesn't show that it is nil. (

[fpc-devel] Dwarf3 and the encoding of classes

2011-01-03 Thread Joost van der Sluis
Hi all, When you specify -gw3 to create Dwarf-3 debug information, there is no 'reference' pointer to a class in the debug information. This means that when you evaluate a class-variable, it will show the contents of the variable, not the pointer pointing at it. If you want to see the address of

Re: [fpc-devel] Calling conventions

2011-01-03 Thread Joost van der Sluis
On Sun, 2011-01-02 at 22:11 -0500, Andrew Haines wrote: > I would like to implement whatever is common to interface > winapi(stdcall?) on win32 and just wanted to know if stdcall is for sure > what I want. > > I know on x64 there is only one calling convention each for windows64 > and everything_e

<    1   2   3   4   5   6   >