Hi, I want to emit the debug information in assembly through assembler directives. Also I don't want to emit debug information in sections (like Dwarf). Instead the debug information will be interspersed with the assembly. However in LLVM, debug info (e.g. stoppoint) is read and made part of the DAG only when DwarfWriter is registered. How can I emit the debug information in assembly with out using DwarfWriter? Regards Sachin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090224/4fea86e9/attachment.html>
Sachin, On Feb 24, 2009, at 12:27 AM, Sachin.Punyani at microchip.com wrote:> Hi, > > I want to emit the debug information in assembly through assembler > directives. Also I don’t want to emit debug information in sections > (like Dwarf). Instead the debug information will be interspersed > with the assembly. However in LLVM, debug info (e.g. stoppoint) is > read and made part of the DAG only when DwarfWriter is registered. > > How can I emit the debug information in assembly with out using > DwarfWriter?We are moving in the direction where DwafWriter won't be required while building DAG. The work is in progress to annotate machine instructions (DebugLoc etc..) with debugging information which can be directly interpreted by an asm printer. DwarfWriter will become dumb asm printer which will work directly based on incoming machine instruction stream. - Devang
> -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]On> Behalf Of Devang Patel > Sent: Tuesday, February 24, 2009 11:38 PM > To: LLVM Developers Mailing List > Subject: Re: [LLVMdev] Debug Info Question > > Sachin, > > On Feb 24, 2009, at 12:27 AM, Sachin.Punyani at microchip.com wrote: > > > Hi, > > > > I want to emit the debug information in assembly through assembler > > directives. Also I don't want to emit debug information in sections > > (like Dwarf). Instead the debug information will be interspersed > > with the assembly. However in LLVM, debug info (e.g. stoppoint) is > > read and made part of the DAG only when DwarfWriter is registered. > > > > How can I emit the debug information in assembly with out using > > DwarfWriter? > > We are moving in the direction where DwafWriter won't be required > while building DAG. The work is in progress to annotate machine > instructions (DebugLoc etc..) with debugging information which can be > directly interpreted by an asm printer.Is there anything we can we help with? - Sanjiv