This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB C++ support

eli> You don't need to apologize about not having the information I asked
eli> for.  But there's no need to be harsh, either.

Yeah, you're right, I got up grouchy this morning.  I apologize for that.

Co-incidentally, I'm making test runs with stock 5.1 right now.
Here's an excerpt from gdb.log:

  # gdb 5.1, gcc 3.0.2, -gdwarf-2, gdb.c++/method.exp

  (gdb) break main^M
  Breakpoint 1 at 0x8048549: file /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.c++/, line 66.^M
  (gdb) run ^M
  Starting program: /berman/migchain/build/native/gdb-5.1/gdb/testsuite/gdb.c++/method ^M
  Breakpoint 1, main () at /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.c++/^M
  66        k = 10;^M
  (gdb) break A::foo^M
  Breakpoint 2 at 0x80484a6: file /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.c++/, line 38.^M
  (gdb) PASS: gdb.c++/method.exp: set breakpoint on A::foo
  Breakpoint 2, A::foo(int) (this=0xbffff0e0, arg=13) at /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.c++/^M
  38        x += arg;^M
  (gdb) FAIL: gdb.c++/method.exp: continuing and breaking in A::foo

So you can see that 'break A::foo' works and gdb takes the breakpoint.
I don't know what that "FAIL" is about (that is a different issue).


Michael C

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]