Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Martin
I cced to lazarus. We should move the discussion On 21/03/2012 14:54, Marcos Douglas wrote: Oh my... =) There are many differences, many options to choice. Using a simple vision, I think the IDE should be use the last GDB that works fine in the major cases. What GDB version represents that? Th

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Marcos Douglas
On Wed, Mar 21, 2012 at 11:28 AM, Martin wrote: > On 21/03/2012 13:48, Marcos Douglas wrote: >> >> Which GDB SVN do you think is the best choice? > > > Not really sure. I have versions from 6.3 to 7.4. (for win 32). > There is a testcase in the debugger/test/GDBMI directory > > Most of the differe

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Martin
On 21/03/2012 13:48, Marcos Douglas wrote: Which GDB SVN do you think is the best choice? Not really sure. I have versions from 6.3 to 7.4. (for win 32). There is a testcase in the debugger/test/GDBMI directory Most of the differences are handled by the IDE (like different text of error messa

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Marcos Douglas
On Wed, Mar 21, 2012 at 10:32 AM, Martin wrote: > On 21/03/2012 12:49, Marcos Douglas wrote: >> >> On Tue, Mar 20, 2012 at 6:27 PM, Martin  wrote: >>> >>> On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem. If I c

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Martin
On 21/03/2012 12:49, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 6:27 PM, Martin wrote: On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem. If I compile and run in console, I have no memleak. Good. But if I put a breakpoint in ACon

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 6:27 PM, Martin wrote: > On 20/03/2012 12:08, Marcos Douglas wrote: >> >> Hi, >> >> I was testing the new connector to MSSQL when I found a problem. >> If I compile and run in console, I have no memleak. Good. But if I put >> a breakpoint in AConnection.Free; and press F8,

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-21 Thread Sven Barth
Am 20.03.2012 18:03, schrieb Marcos Douglas: On Tue, Mar 20, 2012 at 12:35 PM, Jonas Maebe wrote: On 20 Mar 2012, at 14:06, Marcos Douglas wrote: I compile FPC using these options: UPXPROG=echo COPYTREE=echo OPT="-gl" You should use OPT="-O- -gl" if you want to debug standard FPC units. The

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Martin
On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem. If I compile and run in console, I have no memleak. Good. But if I put a breakpoint in AConnection.Free; and press F8, I got this: ERROR ,msg="Warning:\nCannot insert breakpoint -237.

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 1:44 PM, Martin wrote: > On 20/03/2012 14:52, Marcos Douglas wrote: >>> >>> ERROR >>> ,msg="Warning:\nCannot insert breakpoint -237.\nError accessing memory >>> address 0x7816cd30: Input/output error.\n" >>> > >> I use gdb 7.3 (http://svn.freepascal.org/svn/lazarus/binaries

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 12:35 PM, Jonas Maebe wrote: > > On 20 Mar 2012, at 14:06, Marcos Douglas wrote: > > I compile FPC using these options: UPXPROG=echo COPYTREE=echo OPT="-gl" > > > You should use OPT="-O- -gl" if you want to debug standard FPC units. The > default for building the entire FPC

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 12:24 PM, Martin wrote: > On 20/03/2012 14:52, Marcos Douglas wrote: >> >> On Tue, Mar 20, 2012 at 11:36 AM, Martin  wrote: >>> >>> On 20/03/2012 14:08, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 9:34 AM, Martin    wrote: > > On 20/03/2012 12:08, Marcos

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Martin
On 20/03/2012 14:52, Marcos Douglas wrote: ERROR ,msg="Warning:\nCannot insert breakpoint -237.\nError accessing memory address 0x7816cd30: Input/output error.\n" I use gdb 7.3 (http://svn.freepascal.org/svn/lazarus/binaries/) only in 32 bit. I only use 32 bit. Interesting. 0x7816cd30 I

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Jonas Maebe
On 20 Mar 2012, at 14:06, Marcos Douglas wrote: I compile FPC using these options: UPXPROG=echo COPYTREE=echo OPT="- gl" You should use OPT="-O- -gl" if you want to debug standard FPC units. The default for building the entire FPC source tree is -O2. Optimizations generally have little ef

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Martin
On 20/03/2012 14:52, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 11:36 AM, Martin wrote: On 20/03/2012 14:08, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 9:34 AM, Martinwrote: On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a prob

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 11:36 AM, Martin wrote: > On 20/03/2012 14:08, Marcos Douglas wrote: >> >> On Tue, Mar 20, 2012 at 9:34 AM, Martin  wrote: >>> >>> On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem. If I c

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Martin
On 20/03/2012 14:08, Marcos Douglas wrote: On Tue, Mar 20, 2012 at 9:34 AM, Martin wrote: On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem. If I compile and run in console, I have no memleak. Good. But if I put a breakpoint in ACon

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 9:34 AM, Martin wrote: > On 20/03/2012 12:08, Marcos Douglas wrote: >> >> Hi, >> >> I was testing the new connector to MSSQL when I found a problem. >> If I compile and run in console, I have no memleak. Good. But if I put >> a breakpoint in AConnection.Free; and press F8,

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
Tem umas opções com o novo GDB >6.5 que parece ser a melhor opção. Vou recompilar o FPC e Lazarus utilizando: -gl -gw -godwarfsets Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 9:34 AM, Martin wrote: > > On 20/03/2012 12:08, Marcos Douglas wrote: >> >> Hi, >> >> I was testing the new connector to MSSQL when I found a problem. >> If I compile and run in console, I have no memleak. Good. But if I put >> a breakpoint in AConnection.Free; and press F8

Re: [fpc-pascal] SQLdb: problem using GDB, but do not have memleak

2012-03-20 Thread Martin
On 20/03/2012 12:08, Marcos Douglas wrote: Hi, I was testing the new connector to MSSQL when I found a problem. If I compile and run in console, I have no memleak. Good. But if I put a breakpoint in AConnection.Free; and press F8, I got this: ERROR ,msg="Warning:\nCannot insert breakpoint -237.