Sign in Join

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

Mailing lists / lazarus / 2012-03

SQLdb: problem using GDB, but do not have memleak

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Martin

I cced to lazarus.

We should move the discussion

Marcos Douglas wrote 8 lines
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? The URL that I wrote gets the 7.3 version. That is the recommended by Lazarus Team?

At the moment, I think Lazarus ships 7.3.2

http://svn.freepascal.org/svn/lazarus/binaries

So far I have no plans to update to 7.4 until either:
- I find some existing problem solved in it
- I start supporting new features

However, my tests so far, have not shown any problems when using 7.4.

Reply by email

Marcos Douglas
to Martin
Martin wrote 19 lines
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? > > The URL that I wrote gets the 7.3 version. That is the recommended by > Lazarus Team? > At the moment, I think Lazarus ships 7.3.2 http://svn.freepascal.org/svn/lazarus/binaries

Yes, that is the URL I use.

Show quoted text 5 lines
So far I have no plans to update to 7.4 until either: - I find some existing problem solved in it - I start supporting new features However, my tests so far, have not shown any problems when using 7.4.

So, when you move to 7.4 the only thing I need to do is update from SVN, right?

To everything work together between FPC 2.6.1 and Lazarus trunk, what are the best OPT options to compile both?
I always used "-gl" and never had problems. Jonas said OPT="-O- -gl" that is one more option.
Well, I need to use this option(s) in Lazarus Build too. I use the IDE to do this. So, the right way is click in "Configure Build" and put the same OPT in Options box, is that right?

Marcos Douglas

Reply by email

Martin
to Marcos Douglas
Marcos Douglas wrote 7 lines
On Wed, Mar 21, 2012 at 12:01 PM, Martin wrote: > So far I have no plans to update to 7.4 until either: > - I find some existing problem solved in it > - I start supporting new features > > However, my tests so far, have not shown any problems when using 7.4. So, when you move to 7.4 the only thing I need to do is update from SVN, right?

yes.

Show quoted text 9 lines
To everything work together between FPC 2.6.1 and Lazarus trunk, what are the best OPT options to compile both? I always used "-gl" and never had problems. Jonas said OPT="-O- -gl" that is one more option. Well, I need to use this option(s) in Lazarus Build too. I use the IDE to do this. So, the right way is click in "Configure Build" and put the same OPT in Options box, is that right?

Well do you want/need fpc with debug info?

If yes, then the fpc makefiles include -O2 and you need to cancel that. Because "-O2 -O1" is still -O2, but "-O2 -O-1" (or the long version "-O2 -O- -O1") is -O1

In any case, that affects if you can inspect variables in the RTL. It does not seem to be related to the original issue

Mind: rtl with debug info, will step into every ansistring_dec/inc_ref and similar. That can be highly annoying
But: rtl with debug info also allows to access some global vars (like the local time-date-format setting var)

Whatever you do:
-g defaults to stabs

I recommend to not mix stabs and dwarf (it may work, but I do not know). So use the same for LCL, packages and app

Maybe best to be explicit

-gs
-gw -godwarfsets

-dwarf allows some properties (those directly mapped to a field) -stabs (and modern gdb) can do -gp (preserve the case of symbols, instead of getting the all caps stuff.

I have NOT got a full list of diffs...

Reply by email

Marcos Douglas
to Martin
Martin wrote 27 lines
On 21/03/2012 15:11, Marcos Douglas wrote: > > On Wed, Mar 21, 2012 at 12:01 PM, Martin ?wrote: >> >> So far I have no plans to update to 7.4 until either: >> >> - I find some existing problem solved in it >> - I start supporting new features >> >> However, my tests so far, have not shown any problems when using 7.4. > > So, when you move to 7.4 the only thing I need to do is update from SVN, > right? yes. > > To everything work together between FPC 2.6.1 and Lazarus trunk, what > are the best OPT options to compile both? > I always used "-gl" and never had problems. Jonas said OPT="-O- -gl" > that is one more option. > Well, I need to use this option(s) in Lazarus Build too. I use the IDE > to do this. So, the right way is click in "Configure Build" and put > the same OPT in Options box, is that right? > Well do you want/need fpc with debug info?

Yes, sometimes, to know what is happening in RTL.
Do you want an example? http://bugs.freepascal.org/view.php?id=21529

If yes, then the fpc makefiles include -O2 and you need to cancel that. Because "-O2 -O1" is still -O2, but "-O2 -O-1" (or the long version "-O2 -O- -O1") is -O1

Cool. Thank for this tip.

Show quoted text 5 lines
In any case, that affects if you can inspect variables in the RTL. It does not seem to be related to the original issue Mind: rtl with debug info, will step into every ansistring_dec/inc_ref and similar. That can be highly annoying

Yeah, I know... =) but I just put a new breakpoint in somewhere and press F9 to pass.

Show quoted text 20 lines
But: rtl with debug info also allows to access some global vars (like the local time-date-format setting var) Whatever you do: -g defaults to stabs I recommend to not mix stabs and dwarf (it may work, but I do not know). So use the same for LCL, packages and app Maybe best to be explicit -gs -gw -godwarfsets -dwarf allows some properties (those directly mapped to a field) -stabs (and modern gdb) can do -gp (preserve the case of symbols, instead of getting the all caps stuff. I have NOT got a full list of diffs...

OK, I'll play with this. Thank you very much.

Marcos Douglas

Reply by email