This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/13041] Virtual base class botch
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 4 Aug 2011 14:10:00 +0000
- Subject: [Bug mi/13041] Virtual base class botch
- Auto-submitted: auto-generated
- References: <bug-13041-4717@http.sourceware.org/bugzilla/>
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.