[LLVMdev] [cfe-dev] Debug information on multiple files

Devang Patel dpatel at apple.com
Tue Aug 31 16:53:21 PDT 2010

On Aug 31, 2010, at 2:15 AM, Renato Golin wrote:

> On 26 August 2010 09:32, Krister Wombell <kuwerty at gmail.com> wrote:
>> I've also been looking at debugging with ELF and noticed the same problem as
>> Renato. I just sent a patch to llvmcommits that fixes the problem.
>> DW_at_stmt_list needs to emit a label(and therefore a relocation) for the
>> offset rather a constant 0, then the linker can fixup the offset as it
>> shuffles object files around.
> Hi Krister,
> We've applied your patch locally and it solved our problem, thanks!

... but, as it was discussed earlier, it breaks Darwin. 
I applied a patch to handle DW_AT_stmt_list using target  hook (based on original patch by Artur Pietrek). r112678. Please try it and let me know if it works. If it works, please prepare a patch for debug_range using similar target hook approach.


More information about the llvm-dev mailing list