RE: Debug problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To illustrate I am sending my gdb log

(gdb) b Class1::Class1
[0] cancel
[1] all
[2] Class1::Class1(char const*, char const*, unsigned int) at
Class1.cpp:10
[3] Class1::Class1$base(char const*, char const*, unsigned int) at
Class1.cpp:10
> 1
Breakpoint 2 at 0x6d2ba0: file Class1.cpp, line 10.
Breakpoint 3 at 0x6d2a54: file Class1.cpp, line 10.
warning: Multiple breakpoints were set.
warning: Use the "delete" command to delete unwanted breakpoints.
(gdb) c
Continuing.
 
Breakpoint 2, 0x006d2ba0 in Class1::Class1()
    at /disk1/src/Class2.cpp:37
37      Class2::Class2()
(gdb)

Thanks
Yogesh
 

-----Original Message-----
From: Ian Lance Taylor [mailto:iant@xxxxxxxxxx] 
Sent: Tuesday, July 10, 2007 7:56 PM
To: Arora Yogesh-a22623
Cc: gcc-help@xxxxxxxxxxx
Subject: Re: Debug problem

"Arora Yogesh-a22623" <yogesh.arora@xxxxxxxxxxxx> writes:

> I am facing a problem related to debug 
> I have a large set of code, which I build using makefile
> When I debug the code (built with -g option ) , the symbols are linked
> to wrong files. For example if a symbol ABC::ABC() is in ABC.cpp , At
> the time of debugging it show ABC::ABC() in XYZ.cpp.
> 
> Due to this I am not able to debug properly
> 
> Can any one give me some pointers what could be the reason for this , 

Your description of the problem is too vague.  What precisely do you
see?  What do you mean by "At the time of debugging it show ABC::ABC()
in XYZ.cpp"?  Can you give a small example showing the problem?

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux