Re: Questions Regarding DWARF

2011-09-08 Thread Michael Eager
On 09/07/2011 06:59 PM, Kevin Polulak wrote: I'd like to know at what stage during compilation is debug data collected and subsequently stored in the object file? Is it a multi-stage process? Perhaps the parser collects some high-level information which passes it to the code generator for furthe

Re: Questions Regarding DWARF

2011-09-08 Thread Andi Kleen
Kevin Polulak writes: > > I've tried to gain some knowledge by digging through the GCC source > but haven't come up with much other than the values of the DW_* > constants which isn't that important. Are there any files in > particular I should be looking at? >From the gcc internals manual: * D

Questions Regarding DWARF

2011-09-07 Thread Kevin Polulak
Howdy, I'm a contributor to the Parrot project which is a virtual machine for dynamic languages including Perl 6. One of the problems we've been facing is that the bytecode does not contain a debug segment for preserving high-level information about the original source code. Therefore, I've begun