Sign in Join

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

Mailing lists / fpc-devel / 2009-05

Playing with archer using mingw, and dwarf2/3

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Joost van der Sluis

Hi all,

I've finally succeeded in buildin gdb-archer on windows using mingw. I wanted to look how things are working using dwarf-3 debug info.

Jonas, are there any things I could try using dwarf-3 which should not work using dwarf-2/stabs? Or somehing I really need Archer for?

There are quite a few things that don't work using -gw3, though. Like evaluating simple (local) variables. Breakpoints and stepping through the code does work.

Shall I try to make simple examples and file bug-reports? Is -gw3 supposed to work on windows at all? (Yuri?)

Joost.

Reply by email

Jonas Maebe
to Joost van der Sluis
Joost van der Sluis wrote
I've finally succeeded in buildin gdb-archer on windows using mingw.

Which branch did you build? "archer"? If you built "master" instead: that's just regular gdb cvs imported in git (used for keeping all the different branches in sync with gdb cvs), so in that case it's normal that DWARF3 barely works.

Show quoted text 5 lines
I wanted to look how things are working using dwarf-3 debug info. Jonas, are there any things I could try using dwarf-3 which should not work using dwarf-2/stabs? Or somehing I really need Archer for?

You should be able to print dynamic arrays and ansistrings with it using the regular "print" command.

There are quite a few things that don't work using -gw3, though. Like evaluating simple (local) variables.

That worked for me when I last tried it (that was a while ago though). But in general it's barely tested. There's a bunch of DWARF2 stuff that's overridden by DWARF3 methods (from before I ever touched dbgdwarf.pas), and most of the corresponding DWARF2 code has been significantly fixed/altered since then (e.g., debug info for classes and objects). So it's quite expected that currently several things work worse with DWARF3 than with DWARF2.

Shall I try to make simple examples and file bug-reports?

You can, but I don't know if it's very useful at this point. No one has even started testing and debugging it.

Is -gw3 supposed to work on windows at all? (Yuri?)

There is no difference in how DWARF2 and DWARF3 are encoded at the assembler/object file level.

Jonas

Reply by email

Joost van der Sluis
to Jonas Maebe

Op zaterdag 16-05-2009 om 22:55 uur [tijdzone +0200], schreef Jonas Maebe:

Show quoted text 8 lines
On 16 May 2009, at 22:22, Joost van der Sluis wrote: > I've finally succeeded in buildin gdb-archer on windows using mingw. Which branch did you build? "archer"? If you built "master" instead: that's just regular gdb cvs imported in git (used for keeping all the different branches in sync with gdb cvs), so in that case it's normal that DWARF3 barely works.

I've tried a few. Among them also master, and further mainly the fedora-merges branche.

It could indeed be the case that the actual dwarf-3 tests were with master. I'll re-try tomorrow using the fedora-branch. (Or could you suggest another one? I though this branche would be somewhat stable and include most things from other branches)

Show quoted text 19 lines
> I > wanted to look how things are working using dwarf-3 debug info. > > Jonas, are there any things I could try using dwarf-3 which should not > work using dwarf-2/stabs? Or somehing I really need Archer for? You should be able to print dynamic arrays and ansistrings with it using the regular "print" command. > There are quite a few things that don't work using -gw3, though. Like > evaluating simple (local) variables. That worked for me when I last tried it (that was a while ago though). But in general it's barely tested. There's a bunch of DWARF2 stuff that's overridden by DWARF3 methods (from before I ever touched dbgdwarf.pas), and most of the corresponding DWARF2 code has been significantly fixed/altered since then (e.g., debug info for classes and objects). So it's quite expected that currently several things work worse with DWARF3 than with DWARF2.

You indeed already mentioned that earlier.

> Shall I try to make simple examples and file bug-reports? You can, but I don't know if it's very useful at this point. No one has even started testing and debugging it.

We need something to start.

Show quoted text 5 lines
> Is -gw3 > supposed to work on windows at all? (Yuri?) There is no difference in how DWARF2 and DWARF3 are encoded at the assembler/object file level.

Ok, good to know.

Joost.

Reply by email

Jonas Maebe
to Joost van der Sluis
Joost van der Sluis wrote 5 lines
It could indeed be the case that the actual dwarf-3 tests were with master. I'll re-try tomorrow using the fedora-branch. (Or could you suggest another one? I though this branche would be somewhat stable and include most things from other branches)

I have always used the "archer" branch. I'm not sure whether that one is still updated though. I have no idea about the state of the fedora branch, nor about whether that is the code which will be used for Fedora Core 11 (although it would seem logical).

Jonas

Reply by email

Marco van de Voort
to Joost van der Sluis: I've finally succeeded in buildin gdb-archer on windows using mingw. I wanted to look how…

In our previous episode, Joost van der Sluis said:

Show quoted text 12 lines
I've finally succeeded in buildin gdb-archer on windows using mingw. I wanted to look how things are working using dwarf-3 debug info. Jonas, are there any things I could try using dwarf-3 which should not work using dwarf-2/stabs? Or somehing I really need Archer for? There are quite a few things that don't work using -gw3, though. Like evaluating simple (local) variables. Breakpoints and stepping through the code does work. Shall I try to make simple examples and file bug-reports? Is -gw3 supposed to work on windows at all? (Yuri?)

Please document carefully what you are doing. Preferably including taking a snapshot of the mingw installation etc.

This weekend, I tried to duplicate building the FPC IDE with mingw (as prepared by Mario M. in mantis 11968)

I succeeded partially (can set breakpoints and trace the source), but somehow program termination crashes GDB which then refuses to shutdown. I suspect that I didn't properly init mingw to begin with. (I fake _atexit)

I keep tabs on

http://www.stack.nl/~marcov/mingw/

but I still have to update that for recent events.

Reply by email