From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15259 invoked by alias); 11 May 2010 18:59:37 -0000 Received: (qmail 15249 invoked by uid 22791); 11 May 2010 18:59:36 -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; Tue, 11 May 2010 18:59:30 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4BIxLTr002311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 May 2010 14:59:21 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4BIxKuf004405; Tue, 11 May 2010 14:59:20 -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 o4BIxJaB028132; Tue, 11 May 2010 14:59:19 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 10D6337818E; Tue, 11 May 2010 12:59:19 -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> <4BE9232A.40904@cea.fr> Reply-To: Tom Tromey Date: Tue, 11 May 2010 18:59:00 -0000 In-Reply-To: <4BE9232A.40904@cea.fr> (Anton MOUKHARSKI's message of "Tue, 11 May 2010 11:28:10 +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/msg00043.txt.bz2 >>>>> "Anton" == Anton MOUKHARSKI writes: Anton> Platform is Mandriva Linux release 2008.0 (Official) for i586 Kernel Anton> 2.6.22.19-desktop-2mdv. Gdb version is GNU gdb 6.6-3.1mdv2008.0 (Mandriva Anton> Linux release 2008.0). 6.6 is rather old. I would suggest upgrading first. Anton> Again, the problem seems to be that the function in which I put Anton> my breakpoint is called via a function-pointer (ip2 in the code Anton> below); the function which is called below the call of Anton> "process.execute()" is determined at execution time. We will need a small, self-contained example showing the problem. To my knowledge, gdb does not get confused if functions are called via pointers. That works just fine when I am debugging gdb itself, for instance. Tom