Re: Debugger question - gdb?

2002-08-13 Thread John Summerfield
On Tue, 13 Aug 2002 21:55, you wrote: > Many years ago I had a similar problem. Not with Linux, but running DOS on > a PC. The problem turned out to be that the compiler thought it was > smarter > than me and "optimized" the code out of existance. Once I turned of > optimization, the problem we

Re: Debugger question - gdb?

2002-08-13 Thread Thomas David Rivers
John Campbell <[EMAIL PROTECTED]> writes: > > > > Many years ago I had a similar problem. Not with Linux, but running DOS on > a PC. The problem turned out to be that the compiler thought it was > smarter > than me and "optimized" the code out of existance. Once I turned of > optimizat

Re: Debugger question - gdb?

2002-08-13 Thread John Campbell
"Ferguson, Neale" cc: Sent by: Linux on 390 Subject: Re: [LINUX-390] Debugger question - gdb? Port <[EMAIL PROTECTED] >

Re: Debugger question - gdb?

2002-08-13 Thread Ferguson, Neale
-g doesn't disable optimization. > I would not expect a problem like this under GCC however; The act > of using a -g is intended to disable any and all optimization.

Re: Debugger question - gdb?

2002-08-13 Thread John Campbell
Many years ago I had a similar problem. Not with Linux, but running DOS on a PC. The problem turned out to be that the compiler thought it was smarter than me and "optimized" the code out of existance. Once I turned of optimization, the problem went away. The program was small so it

Re: Debugger question - gdb?

2002-08-13 Thread Baumgarte, Randy (CORP)
it didn't matter to me. -Original Message- From: Ann Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 9:04 AM To: [EMAIL PROTECTED] Subject: Debugger question - gdb? One of my coworkers is having a problem debugging a C program using gdb. For some reason it se

Debugger question - gdb?

2002-08-13 Thread Ann Smith
One of my coworkers is having a problem debugging a C program using gdb. For some reason it seems to skip the instruction following an IF statement. At first he thought maybe it was a bug in the debugger since we are still using SUSE 7.0, but he tried debugging the program on a PC running SUSE 7.