execution does not run in the source line's order
Eli Zaretskii
eliz@gnu.org
Sat Aug 11 06:31:00 GMT 2012
> Date: Sat, 11 Aug 2012 11:14:41 +0800
> From: rivers horse <horserivers@gmail.com>
>
> I debug gdb using itself, i find a strange issue 拢潞
> the programme being debugged execute not in line
> order,for example, it goes into line 20,then it goes into line 18 ,
> which are simply assignment operations,
>
> what is the reasin for this?
Compiler optimizations are known to reorder code, if doing so cannot
affect the result. If your GDB is compiled with optimizations, that's
the reason.
More information about the Gdb
mailing list