From: Jim Blandy <jimb@zwingli.cygnus.com>
To: Carlo Wood <carlo@alinoe.com>
Cc: gdb@sources.redhat.com
Subject: Re: RFC c++ debugging thread (fwd)
Date: Wed, 04 Jul 2001 09:26:00 -0000 [thread overview]
Message-ID: <npk81ooe0h.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <20010704141527.B17190@alinoe.com>
Great --- I've reproduced this. Thanks very much.
This is definitely a case where GCC isn't providing us with the info,
and we're not ready to consume it.
Carlo Wood <carlo@alinoe.com> writes:
>
> 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 9:26 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
2001-07-04 9:26 ` Jim Blandy [this message]
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=npk81ooe0h.fsf@zwingli.cygnus.com \
--to=jimb@zwingli.cygnus.com \
--cc=carlo@alinoe.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