From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16576 invoked by alias); 12 May 2006 09:38:08 -0000 Received: (qmail 16566 invoked by uid 22791); 12 May 2006 09:38:07 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.tuebingen.mpg.de (HELO tuebingen.mpg.de) (192.124.26.249) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 May 2006 09:38:06 +0000 Received: from [10.37.125.217] ([10.37.125.217] verified) by tuebingen.mpg.de (CommuniGate Pro SMTP 4.1.8) with ESMTP id 19334473 for gdb@sources.redhat.com; Fri, 12 May 2006 11:37:58 +0200 Message-ID: <44645774.8060503@gmx.net> Date: Fri, 12 May 2006 12:43:00 -0000 From: Fabio De Bona User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060308) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: conditional breakpoint with (char* ) string condition Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00160.txt.bz2 Hi everyone, I would like to set a conditional breakpoint with a condition that depends on the value of a char* string, i.e. something like b gui/R.cpp:190 if cmd=="train" (doesn't work of course) resp. b gui/R.cpp:190 if strcmp(cmd,"train") is there a possibility to do this *without* changing the code (like setting a boolean or so in the source). Regards Fabio