From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7619 invoked by alias); 23 Aug 2005 07:00:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7585 invoked by uid 22791); 23 Aug 2005 07:00:04 -0000 Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.206) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 23 Aug 2005 07:00:03 +0000 Received: by rproxy.gmail.com with SMTP id c16so1286626rne for ; Tue, 23 Aug 2005 00:00:02 -0700 (PDT) Received: by 10.38.73.15 with SMTP id v15mr135282rna; Tue, 23 Aug 2005 00:00:02 -0700 (PDT) Received: by 10.38.207.60 with HTTP; Tue, 23 Aug 2005 00:00:02 -0700 (PDT) Message-ID: Date: Tue, 23 Aug 2005 07:00:00 -0000 From: Dima Sorkin To: gdb@sourceware.org Subject: c++ templates and gdb Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-08/txt/msg00083.txt.bz2 Hi. I have problems with debugging c++ templates on gdb (I tried 6.3 and earlier versions, on Linux and MinGW): 1a) Often I am unable to set a breakpoint inside a template- function,or member of a template class. Gdb just don't "see" the code. 1b) Even if I set a breakpoint, gdb sometimes doesn't stop there. 2) Gdb doesn't understand the names of a templates, for example trying to set a breakpoint at the entry of " my_class::f() " won't be understood by gdb.Automatic name completion and resolution of template names (as described in the manual) does not work. Somebody have some hints ? Thank you. Dima.