[LLVMdev] argument registers and -g

Peter Cooper peter_cooper at apple.com
Tue Jul 10 19:14:52 PDT 2012


Hi Reed

I think what you need is DWARF location lists.  See 2.6.4 here http://www.dwarfstd.org/doc/040408.1.html

I think you'd need to mark the values as being in a register location from the function start address, then at the point where they are saved to the stack add a new location to the list for the stack location.

Unfortunately i don't know if we support this or how to go about adding it, but i'm pretty sure thats the DWARF feature you need.

Thanks,
Pete
On Jul 9, 2012, at 3:56 PM, reed kotler <rkotler at mips.com> wrote:

> On Mips, we have argument registers which are treated as scratch 
> registers with a live in.
> 
> This will not work with -g -O0 because the arguments to the function 
> will not be displayable after they are clobbered.
> 
> I'm guess others have solved this problem.
> 
> Is there a preferred way?
> 
> Reed
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list