This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Will therefore GDB utilize C++ or not?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]