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


Hi Mansoor

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.

The usual reason is as mentioned by Atul in his mail.
In addition it might be better if you posted a complete testcase for someone else to be able to reproduce the problem at their end.


cheers
Ramana

--
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)


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