The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
login incorrect espace1000 UNIX for Dummies Questions & Answers 2 08-22-2008 03:48 AM
user name is incorrect keithailor@comc Forum Support Area for Unregistered Users & Account Problems 1 03-31-2007 12:09 PM
memory configuration incorrect? eb222 UNIX for Advanced & Expert Users 1 03-22-2007 03:44 PM
DISPLAY variable set to IP address on login jcorriher Shell Programming and Scripting 4 05-07-2004 01:47 PM
Incorrect Directory Name jand102821 UNIX for Dummies Questions & Answers 1 06-19-2002 01:35 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-17-2008
Registered User
 

Join Date: Nov 2007
Posts: 18
Unhappy Incorrect address display by GDB

Hi,
On using GDB debugger on different executables, the address displayed for the symbols seem incorrect, as it shows me the same address in each prorgram, run simultaneoulsy.

eg:
Program: linkmain1.c

Breakpoint 1, main () at linkmain1.c:14
14 printf("In linkmain1.c\n");
(gdb) info addr main
Symbol "main" is a function at address 0x10780.

Program: linkmain.c

Breakpoint 1, main () at linkmain.c:14
14 printf("In linkmain.c\n");
(gdb) info addr main
Symbol "main" is a function at address 0x10780.

If you see, the address for main is displayed the same, in each executable.

I was basically trying to check if a shared library with PIC is actually shared between processes.


Please advice, on the above, or if i am making a mistake

BTW: I am using GDB on solaris
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0