From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5354 invoked by alias); 25 Apr 2013 14:24:16 -0000 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 Received: (qmail 5345 invoked by uid 89); 25 Apr 2013 14:24:16 -0000 X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from dub0-omc3-s20.dub0.hotmail.com (HELO dub0-omc3-s20.dub0.hotmail.com) (157.55.2.29) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 25 Apr 2013 14:24:15 +0000 Received: from DUB123-W11 ([157.55.2.8]) by dub0-omc3-s20.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 25 Apr 2013 07:24:13 -0700 X-EIP: [raFeGEDQXnY4SCDosVXQlBExqIezhe5R] Message-ID: From: Saurabh T To: Tom Tromey CC: "gdb@sourceware.org" Subject: RE: Problem calling functions within gdb (version 7.5) Date: Thu, 25 Apr 2013 14:24:00 -0000 In-Reply-To: <87r4hykai1.fsf@fleche.redhat.com> References: ,<87r4hykai1.fsf@fleche.redhat.com> Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg00088.txt.bz2 > From: tromey@redhat.com > > Saurabh> 1. call fn(3, x) > Saurabh> gdb says: Cannot resolve function fn to any overloaded instance > Saurabh> This used to work with gdb 7.2. The function signature completely > Saurabh> matches the arguments so I dont know what it's complaining about. > > Please file a bug report. Done: http://sourceware.org/bugzilla/show_bug.cgi?id=3D15398 > > Saurabh> 2. print k > Saurabh> Let's say this prints 0x7ffb24 > Saurabh> call fn2(0x7ffb24) > Saurabh> gdb again says: Cannot resolve function fn2 to any overloaded in= stance > Saurabh> This also used to work with gdb 7.2. Here I can understand if > Saurabh> promoting ints to arbitrary pointers is no longer supported. > > I was under the impression that we allowed this again, but it fails for > me too. Please file another bug for this one. Done: http://sourceware.org/bugzilla/show_bug.cgi?id=3D15399 Thank you.=20=09=09=20=09=20=20=20=09=09=20=20 >From gdb-return-42054-listarch-gdb=sources.redhat.com@sourceware.org Thu Apr 25 15:09:35 2013 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 7491 invoked by alias); 25 Apr 2013 15:09:35 -0000 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 Delivered-To: mailing list gdb@sourceware.org Received: (qmail 7475 invoked by uid 89); 25 Apr 2013 15:09:34 -0000 X-Spam-SWARE-Status: No, score=-7.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 25 Apr 2013 15:09:34 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3PF9WrI025987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 25 Apr 2013 11:09:32 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r3PF9V69020851 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 25 Apr 2013 11:09:32 -0400 Message-ID: <5179472B.5020107@redhat.com> Date: Thu, 25 Apr 2013 15:09:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 MIME-Version: 1.0 To: Saurabh T CC: "gdb@sourceware.org" Subject: Re: Problem calling functions within gdb (version 7.5) References: ,<87r4hykai1.fsf@fleche.redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-04/txt/msg00089.txt.bz2 Content-length: 1387 On 04/25/2013 07:24 AM, Saurabh T wrote: >> From: tromey@redhat.com >> >> Saurabh> 1. call fn(3, x) >> Saurabh> gdb says: Cannot resolve function fn to any overloaded instance >> Saurabh> This used to work with gdb 7.2. The function signature completely >> Saurabh> matches the arguments so I dont know what it's complaining about. >> >> Please file a bug report. > > Done: http://sourceware.org/bugzilla/show_bug.cgi?id=15398 Thank you. This was introduced in 7.2 with support for ADL. Looks like a bug in types_equal, which doesn't account for cv qualifiers. >> Saurabh> 2. print k >> Saurabh> Let's say this prints 0x7ffb24 >> Saurabh> call fn2(0x7ffb24) >> Saurabh> gdb again says: Cannot resolve function fn2 to any overloaded instance >> Saurabh> This also used to work with gdb 7.2. Here I can understand if >> Saurabh> promoting ints to arbitrary pointers is no longer supported. >> >> I was under the impression that we allowed this again, but it fails for >> me too. Please file another bug for this one. > > Done: http://sourceware.org/bugzilla/show_bug.cgi?id=15399 What is "show check type"? If that is enabled/non-zero, gdb will not allow this conversion. If you disable it ("set check type 0"), it should work: (gdb) p fn2(0x7fffffffde14) Cannot resolve function fn2 to any overloaded instance (gdb) set check type 0 (gdb) p fn2(0x7fffffffde14) 3 $7 = void Keith