This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to enable debug code?
- From: Fei Ding <fdingiit at gmail dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 8 Jul 2015 11:11:33 +0800
- Subject: How to enable debug code?
- Authentication-results: sourceware.org; auth=none
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.