Sign in Join

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

Mailing lists / lazarus / 2011-12

Changing the type of debug info

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Martin
to William Oliveira Ferreira
William Oliveira Ferreira wrote
does lazarus takes some especific advantage changing the type of debug info? (project options > compiler options > linking)

yes, but only for a few things.

Before changing it, ensure your gdb can deal with it. Normally that is the cases
- On Mac, not sure as apple still distributes 6.3.50
- win 64 before fpc 2.6 , dwarf may not work

when choosing dwarf, always use "+ sets" (unless maybe again your gdb is real old, I have used it with gdb 6.7.5 all ok)

dwarf 3 is experimental and works LESS well than dwarf (2) => unless you have a specially patched gdb (archer branch).
(Though I did not test the archer gdb, no idea, if it is good)

----------------
biggest diff is

with dwarf you can inspect certain properties. that is ONLY properties that directly map to a field.
Neither stabs, nor any dwarf will call a getter function.

stabs deals better with
- nested (dynamic) array
- param-by-ref "function foo( var RefParam: TBar)"

however Laz 0.9.31 deals with most of this.

there may be a few other diffs. I have no complete list

some fpc (or maybe the linker) had bugs, leaving out line info for parts of try except. But I do not recall the exact details

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111214/1cafdf3e/attachment.html>

Reply by email

William Oliveira Ferreira
to Martin

I?ll gonna test stabs for a while as i?m using *Lazarus 0.9.31 r32454 FPC 2.5.1 i386-win32-win32/win64*. I?ve worryed with FPC version, but, as you said, dwarf may not work on 64Bits versions...

Thanks for information...
________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o

2011/12/14 Martin

Show quoted text 48 lines
On 14/12/2011 01:14, William Oliveira Ferreira wrote: does lazarus takes some especific advantage changing the type of debug info? (project options > compiler options > linking) yes, but only for a few things. Before changing it, ensure your gdb can deal with it. Normally that is the cases - On Mac, not sure as apple still distributes 6.3.50 - win 64 before fpc 2.6 , dwarf may not work when choosing dwarf, always use "+ sets" (unless maybe again your gdb is real old, I have used it with gdb 6.7.5 all ok) dwarf 3 is experimental and works LESS well than dwarf (2) => unless you have a specially patched gdb (archer branch). (Though I did not test the archer gdb, no idea, if it is good) ---------------- biggest diff is with dwarf you can inspect certain properties. that is ONLY properties that directly map to a field. Neither stabs, nor any dwarf will call a getter function. stabs deals better with - nested (dynamic) array - param-by-ref "function foo( var RefParam: TBar)" however Laz 0.9.31 deals with most of this. there may be a few other diffs. I have no complete list some fpc (or maybe the linker) had bugs, leaving out line info for parts of try except. But I do not recall the exact details -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111214/f81bec42/attachment.html>

Reply by email

Martin
to William Oliveira Ferreira
William Oliveira Ferreira wrote
I?ll gonna test stabs for a while as i?m using /Lazarus 0.9.31 r32454 FPC 2.5.1 i386-win32-win32/win64/. I?ve worryed with FPC version, but, as you said, dwarf may not work on 64Bits versions...

with 2.5.1 dwarf should be fine for 64 bit (though my tests with 64 bit are rather sporadic)

if you have specific problems please report
also see
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Reporting_Bugs

Show quoted text 63 lines
Thanks for information... ________________________________ William de Oliveira Ferreira Bacharel em Sistemas de Informa??o 2011/12/14 Martin < <mailto:>> On 14/12/2011 01:14, William Oliveira Ferreira wrote: > does lazarus takes some especific advantage changing the type of > debug info? (project options > compiler options > linking) yes, but only for a few things. Before changing it, ensure your gdb can deal with it. Normally that is the cases - On Mac, not sure as apple still distributes 6.3.50 - win 64 before fpc 2.6 , dwarf may not work when choosing dwarf, always use "+ sets" (unless maybe again your gdb is real old, I have used it with gdb 6.7.5 all ok) dwarf 3 is experimental and works LESS well than dwarf (2) => unless you have a specially patched gdb (archer branch). (Though I did not test the archer gdb, no idea, if it is good) ---------------- biggest diff is with dwarf you can inspect certain properties. that is ONLY properties that directly map to a field. Neither stabs, nor any dwarf will call a getter function. stabs deals better with - nested (dynamic) array - param-by-ref "function foo( var RefParam: TBar)" however Laz 0.9.31 deals with most of this. there may be a few other diffs. I have no complete list some fpc (or maybe the linker) had bugs, leaving out line info for parts of try except. But I do not recall the exact details -- _______________________________________________ Lazarus mailing list <mailto:> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111214/4ca9f305/attachment-0001.html>

Reply by email

William Oliveira Ferreira
to Martin

Ok, if i?ll find something, i?ll post it on mantis as the link explains...

Thanks!
________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o

2011/12/14 Martin

Show quoted text 87 lines
On 14/12/2011 14:11, William Oliveira Ferreira wrote: I?ll gonna test stabs for a while as i?m using *Lazarus 0.9.31 r32454 FPC 2.5.1 i386-win32-win32/win64*. I?ve worryed with FPC version, but, as you said, dwarf may not work on 64Bits versions... with 2.5.1 dwarf should be fine for 64 bit (though my tests with 64 bit are rather sporadic) if you have specific problems please report also see http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Reporting_Bugs Thanks for information... ________________________________ William de Oliveira Ferreira Bacharel em Sistemas de Informa??o 2011/12/14 Martin > On 14/12/2011 01:14, William Oliveira Ferreira wrote: > > does lazarus takes some especific advantage changing the type of debug > info? (project options > compiler options > linking) > > > yes, but only for a few things. > > Before changing it, ensure your gdb can deal with it. Normally that is > the cases > - On Mac, not sure as apple still distributes 6.3.50 > - win 64 before fpc 2.6 , dwarf may not work > > when choosing dwarf, always use "+ sets" (unless maybe again your gdb is > real old, I have used it with gdb 6.7.5 all ok) > > dwarf 3 is experimental and works LESS well than dwarf (2) => unless you > have a specially patched gdb (archer branch). > (Though I did not test the archer gdb, no idea, if it is good) > > > ---------------- > biggest diff is > > with dwarf you can inspect certain properties. that is ONLY properties > that directly map to a field. > Neither stabs, nor any dwarf will call a getter function. > > stabs deals better with > - nested (dynamic) array > - param-by-ref "function foo( var RefParam: TBar)" > > however Laz 0.9.31 deals with most of this. > > there may be a few other diffs. I have no complete list > > some fpc (or maybe the linker) had bugs, leaving out line info for parts > of try except. But I do not recall the exact details > > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- _______________________________________________ Lazarus mailing ://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111214/ea26a4d5/attachment.html>

Reply by email