This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Who's insane: gdb or I?
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- To: Bernd Jendrissek <berndj at prism dot co dot za>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 3 Jul 2002 16:22:05 +0300 (IDT)
- Subject: Re: Who's insane: gdb or I?
On Wed, 3 Jul 2002, Bernd Jendrissek wrote:
> Why did gdb tell me that the "OVERtime+=..." part happened several times
> over?
Because compiler optimizations move code around, so that the machine
instructions generated for those two lines are interleaved.
Simply get used to this. I usually wait until the line shjown by GDB is
after the one I'm interested in, and then print the relevant variables.