This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug mi/13041] Virtual base class botch


http://sourceware.org/bugzilla/show_bug.cgi?id=13041

--- Comment #4 from Pedro Alves <pedro at codesourcery dot com> 2011-08-04 14:09:34 UTC ---
>g++ example.cc -o example 
example.cc:4:17: error: âsc_coreâ is not a namespace-name
example.cc:4:24: error: expected namespace-name before â;â token

Removing the using sc_core statement, the example compiles.

> -break-insert sc_module::sc_module_init

In your example, there are no instances of sc_module, so
sc_module::sc_module_init was optimized out.

Please make sure you only attach/post examples that compile and work.  If you
can reproduce the issue with that example code, then please attach the compiled
binary.

> Error isn't fixed in GDB 7.3 as far as I still get the error now.

The "virtual base class botch" error is no longer present on 7.3.
What error did you get exactly?

> I hope the problem is more clear now.
> Ask if it isn't, please.

Can you try issuing "set logging on" and "set trace-commands on"?  That'll
generate a gdb.txt file with the log of all the gdb commands.

A gdb backtrace would also be useful.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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