From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7200 invoked by alias); 12 Dec 2012 04:13:10 -0000 Received: (qmail 6705 invoked by uid 22791); 12 Dec 2012 04:13:08 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 Dec 2012 04:13:02 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Tidgr-0001DC-Eg from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Tue, 11 Dec 2012 20:13:01 -0800 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 11 Dec 2012 20:13:00 -0800 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Tue, 11 Dec 2012 20:13:00 -0800 From: Yao Qi To: Subject: [PATCH 0/3] dprintf tweaks Date: Wed, 12 Dec 2012 04:13:00 -0000 Message-ID: <1355285581-28889-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00373.txt.bz2 Hi, I happen to see that a block of code about dprintf in print_one_breakpoint_location is dead, and patch 2/3 is to remove the dead block. Patch 1/3 is to test the output of 'info breakpoints' for dprintf in different dprint-style. The whole series are tested on x86_linux with native and gdbserver board file. Test of breakpoint output for dprintf Remove dead code for dprintf. Assert 'printf_line' is non-null. gdb/breakpoint.c | 49 ++++++++++-------------- gdb/testsuite/gdb.base/dprintf.exp | 13 ++++++ gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp | 2 +- 3 files changed, 34 insertions(+), 30 deletions(-) -- 1.7.7.6