Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Berlin <dan@cgsoftware.com>
To: dany_100@yahoo.com
Cc: gdb@sourceware.cygnus.com
Subject: Re: Referencing C++ functions with non-demangled names.
Date: Mon, 21 May 2001 18:23:00 -0000	[thread overview]
Message-ID: <87lmnq18iv.fsf@dynamic-addr-83-177.resnet.rochester.edu> (raw)
In-Reply-To: <3B0987CD.7848.1387DF@localhost>

"Daniel Manfis" <dany_100@yahoo.com> writes:

> Hello.
> 
> If i want to set breakpoint on a C++ function, how could i do it 
> using it's usual and not mangled name? I tried to turn on 
> "set print demangle" and "set print asm-demangle", but it doesn't 
> help: whenever i try to put breakpoint on a C++ function (in my own 
> code) with it's non-demangled name (like: 'break main.cc:f'), i get a 
> message: 
> 
> 'function "f" not defined'
> 
> and i have to either use mangled name or line number.

Errr, I need a test case, it works fine here.
I also need to know what compiler version, etc, you are using.

The workaround is to quote it, or remove the filename: from the front
(or both).
C++ functions with the same name must be the same function, by the
one definition rule, so prefixing it like that is pointless.

Regardless, even if the workaround works, some more information would
be helpful, since i can't reproduce this problem with any compilers i
have around here.

--Dan

-- 
"I saw a subliminal advertising executive, but only for a second.
"-Steven Wright


  reply	other threads:[~2001-05-21 18:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-21 11:24 Daniel Manfis
2001-05-21 18:23 ` Daniel Berlin [this message]
2001-05-22  3:13   ` Daniel Manfis
2001-05-22  6:29     ` Daniel Berlin

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=87lmnq18iv.fsf@dynamic-addr-83-177.resnet.rochester.edu \
    --to=dan@cgsoftware.com \
    --cc=dany_100@yahoo.com \
    --cc=gdb@sourceware.cygnus.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