[LLVMdev] DWARF location lists

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Mar 30 08:02:12 PDT 2011


On Mar 30, 2011, at 3:24 AM, Relph, Richard wrote:

> In the version of LLVM I’m using (Apple tag 2352.1), it seems that the DWARF emitter cannot produce DWARF location lists to outline when user variables live and where. Instead it uses a crutch of DW_AT_start_scope to specify each solitary location where an assignment to a user variable does occur.
>  
> This is unsatisfactory for machines that put user variables in registers because it doesn’t specify when a register is used for some other purpose, leaving the debugger no clue about when a user’s variable might be “dead”. Instead, the debugger will silently tell the user whatever happens to be in that register at the time.

You may want to try with SVN trunk. The DWARF emitter has just learned to notice when registers are clobbered. This did not make it into the 2.9 release.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110330/6b39d02e/attachment.html>


More information about the llvm-dev mailing list