From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95109 invoked by alias); 8 Jul 2015 03:11:37 -0000 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 Received: (qmail 95098 invoked by uid 89); 8 Jul 2015 03:11:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f177.google.com Received: from mail-ie0-f177.google.com (HELO mail-ie0-f177.google.com) (209.85.223.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 08 Jul 2015 03:11:35 +0000 Received: by iecuq6 with SMTP id uq6so147363921iec.2 for ; Tue, 07 Jul 2015 20:11:34 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.87.38 with SMTP id u6mr84582341igz.39.1436325093956; Tue, 07 Jul 2015 20:11:33 -0700 (PDT) Received: by 10.36.43.135 with HTTP; Tue, 7 Jul 2015 20:11:33 -0700 (PDT) Date: Wed, 08 Jul 2015 03:11:00 -0000 Message-ID: Subject: How to enable debug code? From: Fei Ding To: "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00008.txt.bz2 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.