From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4478 invoked by alias); 8 Mar 2012 23:17:28 -0000 Received: (qmail 4410 invoked by uid 22791); 8 Mar 2012 23:17:26 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 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; Thu, 08 Mar 2012 23:17:03 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1S5mZy-0004mZ-0p from Luis_Gustavo@mentor.com ; Thu, 08 Mar 2012 15:17:02 -0800 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by svr-orw-fem-01.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Mar 2012 15:17:01 -0800 Received: from [0.0.0.0] ([172.16.63.104]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Mar 2012 15:17:01 -0800 Message-ID: <4F593DEF.2020100@mentor.com> Date: Thu, 08 Mar 2012 23:17:00 -0000 From: Luis Gustavo Reply-To: "Gustavo, Luis" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19 MIME-Version: 1.0 To: Joel Brobecker CC: gdb-patches@sourceware.org Subject: Re: [RFA] Make breakpoint condition detection trace conditional on remote_debug. References: <1331232142-10562-1-git-send-email-brobecker@adacore.com> In-Reply-To: <1331232142-10562-1-git-send-email-brobecker@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-03/txt/msg00304.txt.bz2 On 03/08/2012 03:42 PM, Joel Brobecker wrote: > Hello, > > I am investigating a problem where a breakpoint with a condition > no longer stops the program when running the program through gdbserver. > One of the things I noticed is this message that keeps popping up in > the gdbserver output: > > % gdbserver :4444 a > Process a created; pid = 10100 > Listening on port 4444 > Remote debugging from host 127.0.0.1 > Found breakpoint condition. > Found breakpoint condition. > Found breakpoint condition. > > This looks like a debugging trace that should only be enable if > requested. > > What do you guys think of this patch. I'm a little under pressure, > so I didn't test the patch, but I will if it looks correct. I wasn't > sure whether I should have used debug_threads or remote_debug... > > gdb/gdbserver/ChangeLog: > > * server.c (process_point_options): If a conditional expression > is found, only print a message if remote_debug is nonzero. > > Thanks, Thanks for the fix, it is the right thing. Do you have the testcase handy? I can do some digging... Did the condition go to the target? How did it evaluate? Luis