Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: 江河 <empriser@gmail.com>
To: news.gnu.gdb <gdb@sourceware.org>
Subject: How can i show the macro infor
Date: Fri, 21 Sep 2007 11:06:00 -0000	[thread overview]
Message-ID: <9875e6b70709210230m28c92c54s6b9348ac010c2452@mail.gmail.com> (raw)

 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 <stdio.h>
#define NEX 1
int main()
{
        printf( "%d\n", N );
        return 0;
}

>gcc -gdwarf-2 -g3 x.c -o x

(gdb) l
1       #include <stdio.h>
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

-- 
桂華秋皎潔


             reply	other threads:[~2007-09-21  9:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-21 11:06 江河 [this message]
2007-09-21 16:23 ` Jim Blandy
2007-09-21 22:21   ` Sheng-Liang Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9875e6b70709210230m28c92c54s6b9348ac010c2452@mail.gmail.com \
    --to=empriser@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox