From: Carlo Wood <carlo@alinoe.com>
To: Jim Blandy <jimb@zwingli.cygnus.com>
Cc: gdb@sources.redhat.com
Subject: Re: RFC c++ debugging thread (fwd)
Date: Wed, 04 Jul 2001 05:15:00 -0000 [thread overview]
Message-ID: <20010704141527.B17190@alinoe.com> (raw)
In-Reply-To: <npelryrkb2.fsf@zwingli.cygnus.com>
On Mon, Jul 02, 2001 at 06:19:13PM -0500, Jim Blandy wrote:
> We have test cases for some problems, and although your problem sounds
> similar, I can't be sure it's exactly the same problem you are seeing.
> Could you put together a test case, show us what GDB does, and tell us
> what you wish it did? Post to gdb@sources.redhat.com.
Well, this is hard to produce from the top of my head in a small
example program. But I'll try next time I run into it.
Here is one example for a start:
~>cat test.cc
namespace foo {
void g(void)
{
}
void f(void)
{
g();
}
}
int main(void)
{
foo::f();
return 0;
}
~>g++-3.0 -g test.cc
~>gdb a.out
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) b main
Breakpoint 1 at 0x8048626: file test.cc, line 15.
(gdb) r
Starting program: /home/carlo/c++/libcw/src/libcwd/a.out
Breakpoint 1, main () at test.cc:15
15 foo::f();
Current language: auto; currently c++
(gdb) s
foo::f() () at test.cc:9
9 g();
(gdb) b g
Function "g" not defined.
--
Carlo Wood <carlo@alinoe.com>
next prev parent reply other threads:[~2001-07-04 5:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.SOL.3.91.1010702120615.3597C-100000@taarna.cygnus.com>
2001-07-02 16:18 ` Jim Blandy
2001-07-02 16:58 ` Daniel Berlin
2001-07-04 5:15 ` Carlo Wood [this message]
2001-07-04 9:26 ` Jim Blandy
2001-07-31 21:31 ` Carlo Wood
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=20010704141527.B17190@alinoe.com \
--to=carlo@alinoe.com \
--cc=gdb@sources.redhat.com \
--cc=jimb@zwingli.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