From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9059 invoked by alias); 25 Jun 2007 23:08:44 -0000 Received: (qmail 9051 invoked by uid 22791); 25 Jun 2007 23:08:43 -0000 X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Mon, 25 Jun 2007 23:08:41 +0000 Received: (qmail invoked by alias); 25 Jun 2007 23:08:39 -0000 Received: from matze2.NMSU.Edu (EHLO matze2.nmsu.edu) [128.123.132.132] by mail.gmx.net (mp050) with SMTP; 26 Jun 2007 01:08:39 +0200 X-Authenticated: #21774340 From: Matt Funk Reply-To: matze999@gmx.net To: gdb@sourceware.org Subject: basic gdb usage question Date: Mon, 25 Jun 2007 23:08:00 -0000 User-Agent: KMail/1.9.5 References: <467D4AE3.7020505@eagercon.com> <468047F0.7060207@eagercon.com> In-Reply-To: <468047F0.7060207@eagercon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706251708.34817.matze999@gmx.net> X-Y-GMX-Trusted: 0 X-IsSubscribed: yes 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 X-SW-Source: 2007-06/txt/msg00280.txt.bz2 Hi, ( i hope this is the correct mailing list to email this question to). I am just starting to use gdb and so have a lot to learn. Basically my problem is that i want to set a breakpoint on multiple conditions. So i want to set the breakpoint in file A at line M under condition X. However, another condition that needs to be met before breaking is in file B with condition Y. condition X: the value of a local variable is (say) 2. condition Y: the value of a variable is (say) 3. Is this possible to set multiple conditions for one breakpoint? I thought about setting two breakpoints but that would not do what i need it to do. Along the same lines, is it then possible to create a condition that references a variable outside the local scope? thanks mat