public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Alain Magloire <alain@qnx.com>
Cc: gdb@sources.redhat.com
Subject: Re: Failed breakpoint for C++ in gdb
Date: Fri, 29 Jul 2005 15:29:00 -0000	[thread overview]
Message-ID: <20050729152854.GA30881@nevyn.them.org> (raw)
In-Reply-To: <1578FF984ABAD411AFA5000102C4BB5B11DEF1F6@NIMBUS>

On Fri, Jul 29, 2005 at 11:20:07AM -0400, Alain Magloire wrote:
> (gdb) b String::check(int) const
> Function "String::check(int)" not defined.
> Make breakpoint pending on future shared library load? (y or [n]) n
> (gdb) b "String::check(int) const"
> Function "String::check(int)" not defined.
> Make breakpoint pending on future shared library load? (y or [n]) n
> (gdb) b 'String::check(int) const'
> Breakpoint 1 at 0x4015bc: file 100992.cpp, line 150.
> 
> I'm curious to know why ("") double quotes are not working, but single quote
> seems to do the job.  This is particular disturbing in the MI protocol where
> it is clearly stated options/arguments containing spaces must be surrounded
> with double quotes.

Because the string is passed directly to the command line symbol name
parser, and it treats single quotes specially.  Really, you have to
read linespec.c to figure out what it's doing.

Basically, with the single quotes, you're getting a minimal symbol from
the ELF symbol table.  The others are trying for debug info lookups and
having some problem.

> Anyway just curious, this was sent by the folks from MontaVista 8-). It is
> too late for the front to deal with it, but for the next version, is this PR
> (bugzilla/gnats) material?

I suppose so; but no one's working in this area, so it's more likely
patch material :-)

-- 
Daniel Jacobowitz
CodeSourcery, LLC

  reply	other threads:[~2005-07-29 15:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29 15:20 Alain Magloire
2005-07-29 15:29 ` Daniel Jacobowitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-28 21:39 Alain Magloire
2005-07-28 21:44 ` Daniel Jacobowitz
2005-07-28 21:13 Alain Magloire
2005-07-28 21:16 ` Daniel Jacobowitz
2005-07-26 13:31 Alain Magloire
2005-07-26 14:01 ` Daniel Jacobowitz

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=20050729152854.GA30881@nevyn.them.org \
    --to=drow@false.org \
    --cc=alain@qnx.com \
    --cc=gdb@sources.redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).