[llvm-commits] [PATCH] Provide debug syms in release builds

Jeffrey Yasskin jyasskin at google.com
Fri Sep 25 13:41:19 PDT 2009


New patch. Does this look better? (I'd already submitted the first one
on Chris's review, so this is just relative to that.)

Also at http://codereview.appspot.com/124047

On Fri, Sep 25, 2009 at 11:48 AM, Jeffrey Yasskin <jyasskin at google.com> wrote:
> It looked like DEBUG_RUNTIME only affected .bc files, which can only
> be used if the compiler is part of the runtime. But I can change it.
> Do DEBUG_SYMBOLS and --enable-debug-symbols work for you?
>
> On Fri, Sep 25, 2009 at 11:43 AM, Daniel Dunbar <daniel at zuster.org> wrote:
>> DEBUG_RUNTIME is something else entirely, and should not be conflated
>> with the behavior you want (it is about RUNTIME pieces, which are
>> conceptually part of the target, whereas you are wanting something for
>> the host).
>>
>> I think this should come in under a different Makefile variable and
>> configure option.
>>
>>  - Daniel
>>
>> On Fri, Sep 25, 2009 at 12:27 AM, Jeffrey Yasskin <jyasskin at google.com> wrote:
>>> This patch causes the --enable-debug-runtime configure flag and the
>>> DEBUG_RUNTIME Makefile variable to pass -g to gcc when building LLVM's
>>> objects. Without this, it's very hard to debug crashes that happen in
>>> Release-Asserts mode but not Debug mode.
>>>
>>> Jeffrey
>>>
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>>
>>>
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug_symbols.patch
Type: application/octet-stream
Size: 1755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090925/e94e3fd8/attachment.obj>


More information about the llvm-commits mailing list