virtual table on g++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DanielJohnson

    virtual table on g++

    Hi,

    I want to study vtable (virtual functions and its behavior) and what
    it contains. I am a newbie learning C++ and using g++ compiler.

    Can you throw some pointers as to how to use g++ or gdb to look the
    contents of vtable ?

    Every help is greatly appreciated.
  • Rolf Magnus

    #2
    Re: virtual table on g++

    DanielJohnson wrote:
    Hi,
    >
    I want to study vtable (virtual functions and its behavior) and what
    it contains. I am a newbie learning C++ and using g++ compiler.
    Then you shouldn't care. The details are compiler-specific, and you don't
    need to know them for using virtual functions. Actually, the C++ standard
    doesn't even mention vtables.
    Can you throw some pointers as to how to use g++ or gdb to look the
    contents of vtable ?
    Someone in gnu.g++.help might.

    Comment

    • EventHelix.com

      #3
      Re: virtual table on g++

      On Feb 10, 11:17 am, DanielJohnson <diffuse...@gma il.comwrote:
      Hi,
      >
      I want to study vtable (virtual functions and its behavior) and what
      it contains. I am a newbie learning C++ and using g++ compiler.
      >
      Can you throw some pointers as to how to use g++ or gdb to look the
      contents of vtable ?
      >
      Every help is greatly appreciated.
      The following articles describe C++ under the hood. The second article
      describes virtual tables.





      --
      EventStudio 4.0 - http://www.Eventhelix.com/Eventstudio/
      Sequence diagram based systems engineering tool

      Comment

      Working...