From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12058 invoked by alias); 15 Dec 2007 04:46:47 -0000 Received: (qmail 12050 invoked by uid 22791); 15 Dec 2007 04:46:47 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 15 Dec 2007 04:46:39 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id EA81E98052; Sat, 15 Dec 2007 04:46:37 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D4E1898022; Sat, 15 Dec 2007 04:46:37 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J3Ov7-0007uY-4V; Fri, 14 Dec 2007 23:46:37 -0500 Date: Sat, 15 Dec 2007 04:46:00 -0000 From: Daniel Jacobowitz To: Peng Yu Cc: gdb@sourceware.org Subject: Re: namespace and argument dependent name lookup (ADL) in gdb Message-ID: <20071215044637.GB30384@caradoc.them.org> Mail-Followup-To: Peng Yu , gdb@sourceware.org References: <366c6f340712121938j2fc71e6dmf69a9395ca6d8f6f@mail.gmail.com> <20071213040129.GA26901@caradoc.them.org> <366c6f340712141515u4a55053if6bc378bc6712975@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <366c6f340712141515u4a55053if6bc378bc6712975@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-12-11) 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 X-SW-Source: 2007-12/txt/msg00100.txt.bz2 On Fri, Dec 14, 2007 at 05:15:06PM -0600, Peng Yu wrote: > > > (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. You typed "tb f". There's no a in that. GDB only works from what you type. > > If you were already > > in the namespace 'test', GDB would search it. > > What if I'm in the function body of "main"? Then type "tb test::f". You have to know where things are defined by looking through the source. You can also use "info function" to search. -- Daniel Jacobowitz CodeSourcery