Debug Info Question

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

Sachin,

From: llvmdev-bounces@cs.uiuc.edu [mailto:llvmdev-bounces@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,

> 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