Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Peng Yu <pengyu.ut@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: namespace and argument dependent name lookup (ADL) in gdb
Date: Sat, 15 Dec 2007 04:46:00 -0000	[thread overview]
Message-ID: <20071215044637.GB30384@caradoc.them.org> (raw)
In-Reply-To: <366c6f340712141515u4a55053if6bc378bc6712975@mail.gmail.com>

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


      parent reply	other threads:[~2007-12-15  4:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-13  3:39 Peng Yu
2007-12-13  4:02 ` Daniel Jacobowitz
     [not found]   ` <366c6f340712141515u4a55053if6bc378bc6712975@mail.gmail.com>
2007-12-15  4:46     ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071215044637.GB30384@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=pengyu.ut@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox