From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27172 invoked by alias); 10 May 2010 19:27:02 -0000 Received: (qmail 27151 invoked by uid 22791); 10 May 2010 19:27:01 -0000 X-SWARE-Spam-Status: No, hits=-5.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 May 2010 19:26:53 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4AJQhmj022899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 May 2010 15:26:43 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4AJQgPh014101; Mon, 10 May 2010 15:26:42 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o4AJQe97021118; Mon, 10 May 2010 15:26:41 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id B4EEC37818E; Mon, 10 May 2010 13:26:40 -0600 (MDT) From: Tom Tromey To: Anton MOUKHARSKI Cc: gdb@sourceware.org Subject: Re: Breakpoint not hit because of function pointers or something similar References: <4BE01FC1.8050309@cea.fr> Reply-To: tromey@redhat.com Date: Mon, 10 May 2010 19:27:00 -0000 In-Reply-To: <4BE01FC1.8050309@cea.fr> (Anton MOUKHARSKI's message of "Tue, 04 May 2010 15:23:13 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-05/txt/msg00041.txt.bz2 >>>>> "Anton" == Anton MOUKHARSKI writes: Anton> I am trying to hit a breakpoint that appears early in the code, but Anton> gdb (ddd) misses it each time. At first I thought it was because of Anton> templates, but gdb seems to cope with that. I have a code similar to Anton> this one (C++, don't read it in detail at first) : It would be helpful if you mentioned your gdb version, your platform, and exactly what you tried in gdb. Anton> So is there anyway to tell gdb that I don't wan't a breakpoint Anton> relative to a linenumber in a source file or a simple function name Anton> but to the instance of the right function, or maybe to use brutal Anton> memory addresses.... anyway something to avoid stepping into the code Anton> 50000 times. Anton> Any ideas? You can try putting a breakpoint on the particular template instantiation you care about. I'm not completely sure this is what you're asking, though. Tom