[LLVMdev] No location info for artificial arguments: cannot step into class methods

Oleg Ranevskyy llvm.mail.list at gmail.com
Wed Jun 24 14:28:41 PDT 2015


Hi David,

I got a problem related to the change made in r188651 - not including 
file/line info for artificial arguments like "this" and "self".
Would you be able to take a look at it, please?

I am compiling the code for ARM linux with fast ISel disabled: -mllvm 
-fast-isel=0. The problem is that it's not possible to step intothe 
constructor, destructor or a method of a class while debugging. Clang 
generates correct .loc in function prologues, but then,  due to r188651, 
inserts a debug info location with zeroed line number (.loc 1 0 0) for 
"this", which misleads the debugger.

Could you explain the reasoning behind this change, please?

This hasn't been noticed before due to the fast ISel omitting location 
info for arguments, so the correct location from the prologue is used. 
It is probably yet another problem to handle.

Thanks in advance for any help.
Kind regards,
Oleg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150625/710b0bae/attachment.html>


More information about the llvm-dev mailing list