From: Eli Zaretskii <eliz@gnu.org>
To: rivers horse <horserivers@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: execution does not run in the source line's order
Date: Sat, 11 Aug 2012 06:31:00 -0000 [thread overview]
Message-ID: <83y5lmc54g.fsf@gnu.org> (raw)
In-Reply-To: <CAJR88piT=nkuG_M6Us+jWNiDEqSxOGFxKPnSBHzio+byyuSUfw@mail.gmail.com>
> 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.
prev parent reply other threads:[~2012-08-11 6:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-11 3:14 rivers horse
2012-08-11 6:24 ` Jan Kratochvil
2012-08-11 6:31 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y5lmc54g.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=horserivers@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox