[PATCH] Emit DWARF info for all code section in an assembly file

Keith Walker kwalker at arm.com
Wed Feb 5 05:27:42 PST 2014


Yes we did agree in principle that we didn't need to support DWARF-2 at the
US dev meeting.

 

However we still allow -gdwarf-2 to be specified on the command line which
gives the impression that DWARF-2 is supported.

 

So should the -gdwarf-2 option be removed (which makes it really obvious
that it is not supported) possibly requiring changes to existing build
command lines that currently use it, or your alternative suggestion that
should it generate DWARF-3  (or 4, or 5) but with a warning that DWARF-2 is
not supported and generating DWARF-3 (or 4, or 5) instead.

 

However this is maybe something that should be discussed separately from
this patch.

 

Keith

 

From: Renato Golin [mailto:renato.golin at linaro.org] 
Sent: 05 February 2014 11:24
To: Keith Walker
Cc: Eric Christopher; Adrian Prantl; LLVM Commits
Subject: Re: [PATCH] Emit DWARF info for all code section in an assembly
file

 

On 5 February 2014 09:58, Keith Walker <kwalker at arm.com> wrote:

3.   Just don't support -gdwarf-2 at all ... does anyone know if there are

any toolchains which require DWARF-2 that need to be supported?

 

I think we kind of agreed on that on the debug session at the US dev
meeting.

 

I know of one case where it's still being used, the kernel:

 

http://llvm.org/bugs/show_bug.cgi?id=18689

 

But I'm more inclined to just ask them to change it in the build system than
actually actively support Dwarf 2 or ignore the flag and pretend they meant
Dwarf 3 (or 4, or 5).

 

cheers,

--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140205/c7df9630/attachment.html>


More information about the llvm-commits mailing list