labath added a comment.

David's example does work with gdb without -Wl,--gdb-index (the member variable 
is shown), presumably due to the aforementioned fuzzy matching. However, it 
does not work if gdb-index is enabled, nor with lldb (as lldb is always very 
index-oriented and assumes equality everywhere). That is definitely not ideal, 
though I'm not sure that means about this patch. This is definitely not the 
only difference in the formatting of DW_AT_names of templates. For example, 
`template<typename T> operator<<(T, T)` will come out as `operator<< <A>` with 
gcc, but as `operator<<<A>` with clang (with or without this patch).
OTOH, differences in type names are more likely to cause problems than is the 
case for functions/operators.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76801



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

Reply via email to