public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "dj170590 at hotmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug mi/13041] Virtual base class botch
Date: Thu, 04 Aug 2011 15:30:00 -0000	[thread overview]
Message-ID: <bug-13041-4717-uvAFA3xKU3@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-13041-4717@http.sourceware.org/bugzilla/>

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

--- Comment #6 from Dennis <dj170590 at hotmail dot com> 2011-08-04 15:29:46 UTC ---
Sorry.
I made some mistakes in my example.

I added a GDB log. The virtual base class botch is popping up between de run
command and all the warnings.(almost at the end of the file.)
But it isn't stored in the file.

(In reply to comment #4)
> >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.
> 
Sorry real stupid piece of code.
It should be Top top; and not Top top();

> 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 am really sure my program gives the error: "virtual base class botch"  but if
you say it doesn't excist anymore. I should better start looking GDB is
installed like it should....

> 
> > 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.

Attached with this report

-- 
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.


  parent reply	other threads:[~2011-08-04 15:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29  8:11 [Bug mi/13041] New: " dj170590 at hotmail dot com
2011-08-03 20:37 ` [Bug mi/13041] " tromey at redhat dot com
2011-08-04  9:47 ` pedro at codesourcery dot com
2011-08-04  9:48 ` pedro at codesourcery dot com
2011-08-04 10:42 ` dj170590 at hotmail dot com
2011-08-04 14:10 ` pedro at codesourcery dot com
2011-08-04 15:04 ` dj170590 at hotmail dot com
2011-08-04 15:30 ` dj170590 at hotmail dot com [this message]
2011-08-04 15:56 ` pedro at codesourcery dot com
2012-12-19 21:56 ` tromey at redhat dot com
2012-12-19 21:58 ` tromey at redhat dot com
2022-08-10 17:09 ` [Bug c++/13041] " tromey at sourceware dot org

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=bug-13041-4717-uvAFA3xKU3@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).