From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22653 invoked by alias); 29 Jun 2011 20:06:00 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 22643 invoked by uid 22791); 29 Jun 2011 20:05:58 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org From: Tom Tromey To: Yao Qi Cc: archer@sourceware.org Subject: Re: C++ draft References: Date: Wed, 29 Jun 2011 20:06:00 -0000 In-Reply-To: (Yao Qi's message of "Tue, 28 Jun 2011 16:21:22 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2011-q2/txt/msg00038.txt.bz2 Yao> In your concrete plan, IIUC, your plan is about converting GDB to C++ Yao> *partially*, instead of re-write GDB *completely*. Is that Yao> correct? Yes. I don't think a complete rewrite is either practical or advisable. Instead I think an incremental approach is best. Now, one possible criticism is that such incremental changes often peter out. And this is definitely a possible problem -- after exceptions and python reference counting, what do we care enough about to transform? I mean, it is easy to think of areas that can be C++-ified, but are the benefits enough to justify the work? Would we be better off just writing GCC plugins to check our changes? I tend to think the benefits are worth the cost, but it is hard to know this with any certainty. Yao> For example, I don't anything in your plan about converting *-tdep.c Yao> stuff into C++. Is it in your plan or we plan to leave them as they Yao> are now? Leave them. Yao> Do we plan to move gdbserver to C++? I think no, because [...] I agree. Yao> I don't think C and C++ co-existance is a problem, or, your plan is Yao> about "make good use of C++ to replace some bad and error-prone stuffs Yao> in GDB, and keep the rest of GDB as it is". Is it right? Yes. Yao> Just want to know clearly what GDB will be after your plan is performed. I think we will always have parts in C. At the very least BFD, and if you push forward on the gdbserver library project, then the shared bits there as well. Tom