From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21545 invoked by alias); 20 Jun 2006 08:38:06 -0000 Received: (qmail 21537 invoked by uid 22791); 20 Jun 2006 08:38:04 -0000 X-Spam-Check-By: sourceware.org Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.181) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Jun 2006 08:38:02 +0000 Received: by py-out-1112.google.com with SMTP id m51so1959356pye for ; Tue, 20 Jun 2006 01:38:01 -0700 (PDT) Received: by 10.35.114.16 with SMTP id r16mr9447510pym; Tue, 20 Jun 2006 01:38:01 -0700 (PDT) Received: by 10.35.21.15 with HTTP; Tue, 20 Jun 2006 01:38:01 -0700 (PDT) Message-ID: Date: Tue, 20 Jun 2006 09:50:00 -0000 From: "Dima Sorkin" To: gdb@sourceware.org Subject: gdb does not stops inside a template function MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7250_24765848.1150792681110" 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/msg00129.txt.bz2 ------=_Part_7250_24765848.1150792681110 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 424 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. Regards and thank you, Dima. P.S. I use various versions of gcc compiler (3.3.6, 4.0.0), the result was the same. ------=_Part_7250_24765848.1150792681110 Content-Type: text/plain; name=templ_dbg.lines_numbered.cpp; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_eonzza1s Content-Disposition: attachment; filename="templ_dbg.lines_numbered.cpp" Content-length: 456 MSAvLyB0ZW1wbF9kYmcuY3BwIC0qLWMrKy0qLQ0KMg0KMyB0ZW1wbGF0ZTx0 eXBlbmFtZSBUPiBUIGNvbnN0IGYoVCBjb25zdCAmdCl7DQo0ICAgICAgICAg cmV0dXJuIHQrdDsNCjUgfQ0KNg0KNyAjaW5jbHVkZTxpb3N0cmVhbT4NCjgg dXNpbmcgbmFtZXNwYWNlIHN0ZDsNCjkNCjEwIGludCBtYWluKCl7DQoxMSAg ICAgICAgIGludCBpKDUpOw0KMTIgICAgICAgICBjb3V0IDw8IGYoaSkgPDwg J1xuJzsNCjEzDQoxNCAgICAgICAgIGRvdWJsZSBkKDAuMyk7DQoxNSAgICAg ICAgIGNvdXQgPDwgZihkKSA8PCAnXG4nOw0KMTYNCjE3ICAgICAgICAgcmV0 dXJuIDA7DQoxOCB9DQoxOQ0KDQo= ------=_Part_7250_24765848.1150792681110 Content-Type: text/plain; name=templ_dbg.1.output; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_eonzzn18 Content-Disposition: attachment; filename="templ_dbg.1.output" Content-length: 623 KGdkYikgYnJlYWsgdGVtcGxfZGJnLmNwcDo0DQpCcmVha3BvaW50IDEgYXQg MHg4MDQ4NzBiOiBmaWxlIHRlbXBsX2RiZy5jcHAsIGxpbmUgNC4NCihnZGIp IHJ1bg0KU3RhcnRpbmcgcHJvZ3JhbTogL2hvbWUvZGltYS90ZW1wbF9kYmcg DQpSZWFkaW5nIHN5bWJvbHMgZnJvbSBzaGFyZWQgb2JqZWN0IHJlYWQgZnJv bSB0YXJnZXQgbWVtb3J5Li4uZG9uZS4NCkxvYWRlZCBzeXN0ZW0gc3VwcGxp ZWQgRFNPIGF0IDB4NTBkMDAwDQoNCkJyZWFrcG9pbnQgMSwgZjxpbnQ+ICh0 PUAweGJmYTc4NGM0KSBhdCB0ZW1wbF9kYmcuY3BwOjQNCjQgICAgICAgICAg ICAgICByZXR1cm4gdCt0Ow0KKGdkYikgcHJpbnQgdA0KJDEgPSAoY29uc3Qg aW50ICYpIEAweGJmYTc4NGM0OiA1DQooZ2RiKSBjb250aW51ZQ0KQ29udGlu dWluZy4NCjEwDQowLjYNCg0KUHJvZ3JhbSBleGl0ZWQgbm9ybWFsbHkuDQoo Z2RiKQ0KDQo= ------=_Part_7250_24765848.1150792681110 Content-Type: text/plain; name=gdb.version; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_eonzzubt Content-Disposition: attachment; filename="gdb.version" Content-length: 570 R05VIGdkYiBSZWQgSGF0IExpbnV4ICg2LjMuMC4wLTEuMjFyaCkNCkNvcHly aWdodCAyMDA0IEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgSW5jLg0KR0RC IGlzIGZyZWUgc29mdHdhcmUsIGNvdmVyZWQgYnkgdGhlIEdOVSBHZW5lcmFs IFB1YmxpYyBMaWNlbnNlLCBhbmQgeW91IGFyZQ0Kd2VsY29tZSB0byBjaGFu Z2UgaXQgYW5kL29yIGRpc3RyaWJ1dGUgY29waWVzIG9mIGl0IHVuZGVyIGNl cnRhaW4gY29uZGl0aW9ucy4NClR5cGUgInNob3cgY29weWluZyIgdG8gc2Vl IHRoZSBjb25kaXRpb25zLg0KVGhlcmUgaXMgYWJzb2x1dGVseSBubyB3YXJy YW50eSBmb3IgR0RCLiAgVHlwZSAic2hvdyB3YXJyYW50eSIgZm9yIGRldGFp bHMuDQpUaGlzIEdEQiB3YXMgY29uZmlndXJlZCBhcyAiaTM4Ni1yZWRoYXQt bGludXgtZ251Ii4NCg== ------=_Part_7250_24765848.1150792681110--