From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 696 invoked by alias); 20 Jun 2006 09:50:21 -0000 Received: (qmail 686 invoked by uid 22791); 20 Jun 2006 09:50:20 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Jun 2006 09:50:16 +0000 Received: from kahikatea.snap.net.nz (p202-124-112-77.snap.net.nz [202.124.112.77]) by viper.snap.net.nz (Postfix) with ESMTP id A440276C273; Tue, 20 Jun 2006 21:50:15 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 99C371D3550; Tue, 20 Jun 2006 21:49:20 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17559.50335.118877.462855@kahikatea.snap.net.nz> Date: Tue, 20 Jun 2006 12:21:00 -0000 To: "Dima Sorkin" Cc: gdb@sourceware.org Subject: gdb does not stops inside a template function In-Reply-To: References: X-Mailer: VM 7.19 under Emacs 22.0.50.22 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-06/txt/msg00130.txt.bz2 > Hi. > I have the following problem with gdb6.3 : > If I put a breakpoint on a line inside a function template, > the gdb not always stops there. > Please see attached ".cpp" file and the gdb session transcript > (file: "templ_dbg.1.output"). > It can be seen that gdb stops on first call to "f", > but not on second. ... (gdb) break templ_dbg.cpp:4 I think you need to do: (gdb) b int const f(int const&) (gdb) b double const f(double const&) if you want it to stop at both places. Completion makes them easier to type: (gdb) b int (gdb) b double (Although I can only see how to select a candidate using Emacs.) -- Nick http://www.inet.net.nz/~nickrob