This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Debugging the debugger


Thanks Atul,

Its exactly what u mentioned. I was using autoconf and was not aware of
the fact that the AC_PROG_CC macro by default enables optimization.

Mansoor.

On Tue, 2005-03-01 at 16:24, Atul Talesara wrote:
> > I want to get to the root of the problem. The problem is that when I
> run
> > my application through gdb, the program flow does not appear to be
> > 'normal'. The same statement (line) keeps on repeating multiple times
> > until it finally gets executed. 
> Best bet is that you have compiled your code with GCC
> optimizations ON(-O1, -O2 or -O3). In which case this
> apparently weird behaviour is completely normal.
> 
> Regards,
> Atul P Talesara
> http://the-shaolin.blogspot.com/
> ---------------------------------------------------------- 
> You can tell more about a person by what he says about
> others than you can by what others say about him.
> 
> ----------------------------------------------------------
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]