* How to enable debug code?
@ 2015-07-08 3:11 Fei Ding
2015-07-08 10:02 ` Pedro Alves
0 siblings, 1 reply; 2+ messages in thread
From: Fei Ding @ 2015-07-08 3:11 UTC (permalink / raw)
To: gdb
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to enable debug code?
2015-07-08 3:11 How to enable debug code? Fei Ding
@ 2015-07-08 10:02 ` Pedro Alves
0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2015-07-08 10:02 UTC (permalink / raw)
To: Fei Ding, gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-08 10:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08 3:11 How to enable debug code? Fei Ding
2015-07-08 10:02 ` Pedro Alves
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).