[PATCH] Ensure debug info for two calls to the same function from the same location are not merged

Eric Christopher echristo at gmail.com
Wed Dec 3 14:33:45 PST 2014


>
>>
>> (Although if the debuggers could understand it, I think having debug info
>> for macros would be pretty cool.)
>
>
> Yep, could be rather handy. I think the full generality of that feature
> would probably look something like "multiple source locations" (maybe some
> kind of source location stack) - which could probably also be used to
> provide multiple levels of debug info - eg: allowing source location
> information for asm, LLVM IR, C(++) source, macro expansions, and maybe
> like a protobuf file or something - so you could step up & down through the
> abstractions.
>

There's some support for macro locations in basic dwarf, source line of
where the macros are defined, etc. It's not great and figuring out how to
do better source line mapping might be fun though.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141203/199330be/attachment.html>


More information about the llvm-commits mailing list