pcc wrote:

I guess `gdb.__dict__` may not correspond to the actual attributes on the 
object because GDB could start using a custom `tp_getattro` for that object, 
although that seems unlikely. I switched to checking the result of `getattr` 
which should be equivalent to checking whether `gdb.execute_mi` would result in 
an AttributeError.

https://github.com/llvm/llvm-project/pull/132291
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to