From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6215 invoked by alias); 21 Sep 2007 09:30:06 -0000 Received: (qmail 6206 invoked by uid 22791); 21 Sep 2007 09:30:06 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Sep 2007 09:30:01 +0000 Received: by rv-out-0910.google.com with SMTP id l15so667976rvb for ; Fri, 21 Sep 2007 02:30:00 -0700 (PDT) Received: by 10.141.87.13 with SMTP id p13mr651061rvl.1190367000218; Fri, 21 Sep 2007 02:30:00 -0700 (PDT) Received: by 10.141.85.21 with HTTP; Fri, 21 Sep 2007 02:30:00 -0700 (PDT) Message-ID: <9875e6b70709210230m28c92c54s6b9348ac010c2452@mail.gmail.com> Date: Fri, 21 Sep 2007 11:06:00 -0000 From: "=?GB2312?B?va260w==?=" To: news.gnu.gdb Subject: How can i show the macro infor MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: b7d95fe58626a6ac X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00169.txt.bz2 I can't show the macro info by these operation. gcc --version gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2) gdb --version GNU gdb Red Hat Linux (6.3.0.0-1.96rh) >cat x.c #include #define NEX 1 int main() { printf( "%d\n", N ); return 0; } >gcc -gdwarf-2 -g3 x.c -o x (gdb) l 1 #include 2 #define NEX 1 3 int main() 4 { 5 printf( "%d\n", NEX ); 6 return 0; 7 } (gdb) info macro NEX The symbol `NEX' has no definition as a C/C++ preprocessor macro at x.c:8 included at /usr/include/stdio.h:749 -- 桂華秋皎潔