This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Why GDB always jumps in and jumps out and seems uncontrollable?
- From: "Jim Blandy" <jimb at red-bean dot com>
- To: "Erming Pei" <epei at cppm dot in2p3 dot fr>
- Cc: choo at actcom dot co dot il, bug-gdb at gnu dot org, mato at nz dot eds dot com, mcelrath at draal dot physics dot wisc dot edu, gdb at sourceware dot org
- Date: Thu, 23 Mar 2006 10:46:21 -0800
- Subject: Re: Why GDB always jumps in and jumps out and seems uncontrollable?
- References: <4422EBAB.90806@cppm.in2p3.fr>
Try compiling your program without optimization, and then debugging that.
Inlining and instruction scheduling can make it hard to correlate the
behavior of the compiled program with that of the source program.