[PATCH] D11933: Extend debug ranges and provide multiple location support for debug variables

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 12:40:33 PDT 2015


probinson added a subscriber: probinson.
probinson added a comment.

In http://reviews.llvm.org/D11933#221911, @friss wrote:

> One thing that we discussed with Adrian some time ago is that emitting multiple locations isn't really useful for the debuggers we now, they will just use one location. Thus the generic code shouldn't maybe emit multiple locations as it will cost file size and IO time for nothing.


This is a chicken-and-egg problem. I think the compiler needs to take the lead here, so that debuggers will have something to experiment with and take advantage of. Actual debug-info-size data would be worth having, if it seems excessive this could be put under some kind of flag.  The primary size cost would be in recording the addresses to delimit the additional ranges.


http://reviews.llvm.org/D11933





More information about the llvm-commits mailing list