From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5836 invoked by alias); 14 Dec 2007 22:47:18 -0000 Received: (qmail 5724 invoked by uid 22791); 14 Dec 2007 22:47:16 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Dec 2007 22:47:10 +0000 Received: from zps19.corp.google.com (zps19.corp.google.com [172.25.146.19]) by smtp-out.google.com with ESMTP id lBEMl5F4009249 for ; Fri, 14 Dec 2007 22:47:06 GMT Received: from py-out-1112.google.com (pyia25.prod.google.com [10.34.253.25]) by zps19.corp.google.com with ESMTP id lBEMjFnu020413 for ; Fri, 14 Dec 2007 14:47:04 -0800 Received: by py-out-1112.google.com with SMTP id a25so3243847pyi.13 for ; Fri, 14 Dec 2007 14:47:04 -0800 (PST) Received: by 10.65.231.20 with SMTP id i20mr8279204qbr.78.1197672422906; Fri, 14 Dec 2007 14:47:02 -0800 (PST) Received: by 10.65.148.3 with HTTP; Fri, 14 Dec 2007 14:47:02 -0800 (PST) Message-ID: <498552560712141447q41c168b7k17c9bde81319feb7@mail.gmail.com> Date: Fri, 14 Dec 2007 22:47:00 -0000 From: "=?BIG5?B?RG91ZyBLd2FuICjD9q62vHcp?=" To: "=?BIG5?B?RG91ZyBLd2FuICjD9q62vHcp?=" , gcc@gcc.gnu.org, gdb@sourceware.org Subject: Re: Adding new dwarf encoding formats for complex integers In-Reply-To: <20071214223532.GA11966@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=BIG5 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <498552560712141430q75098aaembcda8db5c6edd8fb@mail.gmail.com> <20071214223532.GA11966@caradoc.them.org> 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: 2007-12/txt/msg00095.txt.bz2 VGhl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B0aGVuIGxvX3VzZXIgc2Vl bXMgbGlrZQo+IHRoZSBiZXN0IHBsYWNlIHRvIHB1dCBpdCAtIGl0J3MgYSB2 ZW5kb3IgZXh0ZW5zaW9uIC0gc28gSSBkb24ndAo+IHNlZSB0aGUgcHJvYmxl bS4KPgo+IC0tCj4gRGFuaWVsIEphY29ib3dpdHoKPiBDb2RlU291cmNlcnkK Pgo= >From gdb-return-30490-listarch-gdb=sources.redhat.com@sourceware.org Fri Dec 14 23:15:15 2007 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 25141 invoked by alias); 14 Dec 2007 23:15:14 -0000 Received: (qmail 25133 invoked by uid 22791); 14 Dec 2007 23:15:14 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.237) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Dec 2007 23:15:08 +0000 Received: by nz-out-0506.google.com with SMTP id x7so721802nzc.3 for ; Fri, 14 Dec 2007 15:15:06 -0800 (PST) Received: by 10.142.102.5 with SMTP id z5mr1957866wfb.15.1197674106025; Fri, 14 Dec 2007 15:15:06 -0800 (PST) Received: by 10.142.155.16 with HTTP; Fri, 14 Dec 2007 15:15:06 -0800 (PST) Message-ID: <366c6f340712141515u4a55053if6bc378bc6712975@mail.gmail.com> Date: Fri, 14 Dec 2007 23:15:00 -0000 From: "Peng Yu" To: "Peng Yu" , gdb@sourceware.org Subject: Re: namespace and argument dependent name lookup (ADL) in gdb In-Reply-To: <20071213040129.GA26901@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <366c6f340712121938j2fc71e6dmf69a9395ca6d8f6f@mail.gmail.com> <20071213040129.GA26901@caradoc.them.org> X-IsSubscribed: yes 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 X-SW-Source: 2007-12/txt/msg00096.txt.bz2 Content-length: 1157 On Dec 12, 2007 10:01 PM, Daniel Jacobowitz wrote: > On Wed, Dec 12, 2007 at 09:38:53PM -0600, Peng Yu wrote: > > Hi, > > > > I don't have to write test::f in the following program because of > > argument dependent name lookup. > > > > http://en.wikipedia.org/wiki/Argument_dependent_name_lookup > > > > But to debug such program, I have to write the namespace test. For example, > > (gdb) tb f > > Function "f" not defined. > > (gdb) tb test::f > > Breakpoint 1 at 0x804867c: file main.cc, line 11. > > That's not Koenig lookup. There's no arguments. Why there is no argument? a is f's argument. > If you were already > in the namespace 'test', GDB would search it. What if I'm in the function body of "main"? > > > I'm wondering if gdb supports ADL. In a big program, it might not be > > easy for me to find out which namespace is the function "f" in. If gdb > > support ADL, it would save user a lot of time. > > GDB supports some kinds of context-sensitive lookup, but not this one. > It is too complex to reconstruct the necessary information in the > debugger to do accurate name lookup. What is the best strategy to debug su