Will therefore GDB utilize C++ or not?
Tom Tromey
tromey@redhat.com
Fri May 18 19:36:00 GMT 2012
>>>>> "Paul" == <Paul_Koning@Dell.com> writes:
Tom> For example, look at the Python layer. Despite patch review and our
Tom> knowledge of the issues, we still have error-checking and
Tom> reference-counting bugs in the code. You can go through the list
Tom> archives and find them.
Paul> How would C++ help with reference counting bugs? I could see how it
Paul> might (or might not) help with the subset related to error handling
Paul> that can be made clearer with exceptions. But the reference counting
Paul> errors I remember were straight algorithmic mistakes that, as far as I
Paul> can see, would have existed in the exact same form if the algorithm
Paul> had been expressed in C++.
We'd use RAII to ensure that refcounts were automatically managed by the
C++ compiler.
Tom
More information about the Gdb
mailing list