From: Pedro Alves <palves@redhat.com>
To: Fei Ding <fdingiit@gmail.com>, "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: How to enable debug code?
Date: Wed, 08 Jul 2015 10:02:00 -0000 [thread overview]
Message-ID: <559CF537.4030008@redhat.com> (raw)
In-Reply-To: <CAGmPkfKZY6LaKsOHMnDMMFtpHmDE5-ahJ7+WFDiPABTXif_0-A@mail.gmail.com>
On 07/08/2015 04:11 AM, Fei Ding wrote:
> Hi, there:
>
> I met some problem when enabling debug code, here it is:
>
> I want to debug the YACC of GDB command line. Specifically, I want
> this code to work: `YYDPRINTF ((stderr, "Starting parse\n"));', which
> at c-exp.c
>
> So I've tried
> 1. make 'CFLAGS=-DYYDEBUG'
> 2. make YYDEBUG=1
>
> Both failed. Any hint? Thanks.
No need to build any differently. Just do "set debug parser on".
Thanks,
Pedro Alves
prev parent reply other threads:[~2015-07-08 10:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-08 3:11 Fei Ding
2015-07-08 10:02 ` Pedro Alves [this message]
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=559CF537.4030008@redhat.com \
--to=palves@redhat.com \
--cc=fdingiit@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).