The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script not reading Data from oracle table properly Sagarddd Shell Programming and Scripting 2 04-03-2009 04:36 AM
how to view symbol table in unix saravanan_nitt High Level Programming 1 02-14-2008 01:02 AM
Reading a table in a shell script luiscarvalheiro Shell Programming and Scripting 13 08-10-2006 07:16 PM
no symbol table Dom_Cyrus High Level Programming 2 01-31-2006 09:15 AM
reading filenames inside a program j_t_kim UNIX for Dummies Questions & Answers 5 04-04-2002 03:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-01-2009
vinod_chitrali vinod_chitrali is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 2
Reading ELF file Symbol table of C++ program

Folks,

I have some program(Test.cpp) as follows,
#include<iostream>
class Abc
{
private:
int _theVar;
public :
int printVar();

};
int Abc :: printVar()
{
_theVar=10;

}
main()
{
Abc _t;
_t.printVar();
}

I compiled the program using g++ ( g++ -o Test Test.cpp)

After this i tried read the "Test ELF" file's symbol table. I am able fetch the Abc :: printVar symbol, but i am not able to fetch the _theVar of Abc class. Please help me out in solving the this issue.

Rgds,
VInod
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0