Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Guido S." <sassi@uni.de>
To: <gdb@sources.redhat.com>
Subject: GDB C++ support
Date: Mon, 14 Jan 2002 10:25:00 -0000	[thread overview]
Message-ID: <004501c19d29$34583320$813aad83@sedan.uniosnabrueck.de> (raw)

Hi,

I talked to Eli Zeretzki about this recently, and he suggested to post this
on this list:

given the following source:

<code>
class A
{
 public:
...
 void f( ostream & o);
};

main()
{
    A my_A;
    my_A.f(cerr);
}
</code>

i enter gdb and want to use b 'A::f', which doesn't work (just no symbol
info in demangled form for gdb available)

b 'main()' works ... strange enough. so classless names (which I assume are
not mangled/encoded in c style) are possible.
when I set the breakpoint via b gdbtest.cpp:24 it stops and shows the
appropriate line as:

Breakpoint 1, main () at gdbtest.cpp:31
31              A       m(5);
(gdb) c
Continuing.

Breakpoint 2, _ZN1A1fERSo (this=0x1f13fd8, o=@0x3b4c0) at gdbtest.cpp:24
24              o << i << endl;

(gdb) info stack
#0  _ZN1A1fERSo (this=0x1f13fd8, o=@0x3b4c0) at gdbtest.cp
#1  0x1e8c in main () at gdbtest.cpp:32
#2  0x5a82 in __crt1_startup ()
    at c:/djgpp/lang/cxx-v3/bits/locale_facets.tcc:75

this is for gcc 3.0.3, gdb 5.0 and compiled with -gstabs+, using djgpp 2.03

So my question would be, how far the work on support for C++ and gcc 3.x
went as of now, and if one could expect some solution to this problem in the
near future?

It just confuses me, that the development of gcc and gdb seems so
asynchronous, and a compiler suite, as elegant as it may be, withers away if
it lacks usable debugging support.

But I may be mistaken, and am just not able to find out the right -g<format>
specifier to achieve full symbolic debugging. In that case I'ld be thankful
for any guidance.

But I am thankful anyway for the mere existence of gcc and gdb nonetheless
:) and the works of all the ones involved.

Cheers,
Guido



             reply	other threads:[~2002-01-14 18:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-14 10:25 Guido S. [this message]
2002-01-14 10:40 Michael Elizabeth Chastain
2002-01-14 23:43 ` Eli Zaretskii
2002-01-15  5:57 Michael Elizabeth Chastain
2002-01-15  9:15 ` Eli Zaretskii
2002-01-15  9:48 Michael Elizabeth Chastain
2002-01-15 10:00 ` Eli Zaretskii
2002-01-15 10:14 ` Daniel Jacobowitz
     [not found] <1011102697.16058.ezmlm@sources.redhat.com>
2002-01-15 13:08 ` Jim Ingham

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='004501c19d29$34583320$813aad83@sedan.uniosnabrueck.de' \
    --to=sassi@uni.de \
    --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