[Mono-list] JIT patch for stabs debugging

Martin Baulig martin@gnome.org
11 Mar 2002 13:19:26 +0100

Paolo Molaro <lupus@ximian.com> writes:

> On 03/11/02 Martin Baulig wrote:
> > And after a long day of hacking, I have a preliminary dwarf 2 implementation
> > running :-)
> Wow, great!
> I wonder if also mcs should start supporting dwarf debug symbols, so
> that we could optionally debug with IL code or with C# code.
> I think I read somewhere that the pdb format used by microsoft is
> undocumented (and kept so because they want to be able to change it
> without breaking applications: they porovide a dll to access the data).
> So it's completely useless for us.
> Probably the ECMA guys should start thinking about this (if they haven't
> already) and setup a working group to propose changes to the upcoming
> dwarf-3 standard to support IL and C# code:
> http://www.eagercon.com/dwarf/dwarf3std.htm.

If you're talking about the dwarf-3 standard, this pops up an
important questions:

Should I produce "good" an clean dwarf-2 code (ie. exactly as it's
described in the dwarf-2 specification) or only use features which are
already supported by gdb ?

At the moment, I'm writing good code, but this forces people to use at
least gdb 5.1.1 (the latest released version), it does not work with
gdb 5.0.

IMO it makes sense to produce good dwarf-2 code since mono is a very
long living project and will still take several months until its
completion and gdb should have full dwarf-2 support in near future.

Martin Baulig