dblaikie added a comment.

So looking at the DWARF spec for this - I see what it's going for, but yeah, I 
wouldn't want to use a textual representation either at the source or bitcode 
level, ideally... - perhaps this should just be implemented in LLVM when 
something's being lowered to a trampoline we could emit DWARF that describes 
that, without needing source annotations? Or are there situations where it 
depends on how the user wrote the code as to how we want the debugger to dehave?

If it's the latter, then, yeah, some "transparent to debugger" source attribute 
might be appropriate - that lowers to a bit on the DISubprogram and instructs 
LLVM to, if the function definition ends up lowering to a trampoline, mark that 
for the debugger so it's transparent - and if it lowers to a trampoline but 
doesn't have the source attribute, you can then still step into the function 
separately from stepping into the subsequent function?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146595/new/

https://reviews.llvm.org/D146595

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to