From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: /lib/cpp not found in c-mode Date: Thu, 05 May 2005 20:43:47 +0300 Message-ID: <01c5519a$Blat.v2.4$228ff3c0@zahav.net.il> References: <17013.26868.207510.370151@farnswood.snap.net.nz> <17013.52411.51878.781739@farnswood.snap.net.nz> <17014.39042.74353.677362@farnswood.snap.net.nz> <01c55014$Blat.v2.4$59df46a0@zahav.net.il> <01c550ec$Blat.v2.4$3b8fa220@zahav.net.il> <17017.64613.316775.721866@farnswood.snap.net.nz> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1115314986 29410 80.91.229.2 (5 May 2005 17:43:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 May 2005 17:43:06 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 05 19:43:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTkLd-0000xR-0W for ged-emacs-devel@m.gmane.org; Thu, 05 May 2005 19:41:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTkTB-0006DY-Di for ged-emacs-devel@m.gmane.org; Thu, 05 May 2005 13:49:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DTkS4-0005q3-SD for emacs-devel@gnu.org; Thu, 05 May 2005 13:47:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DTkRx-0005n3-Uj for emacs-devel@gnu.org; Thu, 05 May 2005 13:47:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTkRx-0005mN-Oe for emacs-devel@gnu.org; Thu, 05 May 2005 13:47:49 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DTkVf-00080d-0W for emacs-devel@gnu.org; Thu, 05 May 2005 13:51:39 -0400 Original-Received: from zaretski (IGLD-83-130-245-224.inter.net.il [83.130.245.224]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id BDP08296 (AUTH halo1); Thu, 5 May 2005 20:46:13 +0300 (IDT) Original-To: Nick Roberts X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: <17017.64613.316775.721866@farnswood.snap.net.nz> (message from Nick Roberts on Thu, 5 May 2005 22:58:45 +1200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36709 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36709 > From: Nick Roberts > Date: Thu, 5 May 2005 22:58:45 +1200 > Cc: Stefan Monnier , emacs-devel@gnu.org > > As I'm sure you know, GCC (3.1 onwards) provides macro information if you > specify the options -gdwarf-2 and -g3. On GNU/Linux, perhaps, but not on all platforms supported by GCC. > If gdb can expand macros using macro information from the executable > (which requires knowledge of include paths and predefined macros), why > can't cpp (or gcc -E) ? Actually, GDB doesn't know anything about paths and predefined macros, it simply uses the information about macros recorded by the compiler in the DWARF-2 debug info. That's why you need to use -g3: this tells the compiler to record macro information.