From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: Defending GCC considered futile Date: Tue, 10 Feb 2015 09:47:21 +0100 Message-ID: References: <20150207202952.1042BC00A6@snark.thyrsus.com> <87wq3rocqb.fsf@uwakimon.sk.tsukuba.ac.jp> <20150209172445.290dc20e@jabberwock.cb.piermont.com> <83mw4m8mi8.fsf@gnu.org> <54D9C18B.7060302@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423558091 5011 80.91.229.3 (10 Feb 2015 08:48:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2015 08:48:11 +0000 (UTC) Cc: Eli Zaretskii , Daniel Colascione To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 10 09:48:01 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YL6UD-0003Zp-1Y for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2015 09:48:01 +0100 Original-Received: from localhost ([::1]:38420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL6U7-0005Wd-IC for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2015 03:47:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL6U4-0005WW-3A for emacs-devel@gnu.org; Tue, 10 Feb 2015 03:47:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YL6U0-0005UL-Pc for emacs-devel@gnu.org; Tue, 10 Feb 2015 03:47:52 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:41162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL6U0-0005Tx-8u for emacs-devel@gnu.org; Tue, 10 Feb 2015 03:47:48 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YL6Ty-0003W6-R9 for emacs-devel@gnu.org; Tue, 10 Feb 2015 09:47:47 +0100 Original-Received: from 212.46.172.229 ([212.46.172.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2015 09:47:46 +0100 Original-Received: from eller.helmut by 212.46.172.229 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2015 09:47:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 212.46.172.229 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:SGMfOIJG5ZeYm7pYIbjrSPrbEac= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182789 Archived-At: On Tue, Feb 10 2015, Daniel Colascione wrote: > On 02/09/2015 07:37 PM, Eli Zaretskii wrote: >> Parsing source-code expression is a very small part of what GDB does. >> So this is a red herring. > > It's also one of the most frustrating parts of GDB. Subtle problems in > parsing C++ (who can blame GDB for that?) often make it difficult to > produce certain expressions in that language, especially in programs > with complicated templates. If GDB were able to reuse a common parsing > system, AST library, and completion engine, it would be both smaller and > more robust. Recent GDB versions (can) use a GCC plugin to parse source-code; I think completion is still done by GDB itself. https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=include/gcc-c-fe.def;hb=HEAD Helmut