Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
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:24:00 -0000	[thread overview]
Message-ID: <20120811062407.GA18660@host2.jankratochvil.net> (raw)
In-Reply-To: <CAJR88piT=nkuG_M6Us+jWNiDEqSxOGFxKPnSBHzio+byyuSUfw@mail.gmail.com>

On Sat, 11 Aug 2012 05:14:41 +0200, rivers horse wrote:
>      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?

You have probably compiled the file with -O2, use/force -O0 (gcc options).


Regards,
Jan


  reply	other threads:[~2012-08-11  6:24 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 [this message]
2012-08-11  6:31 ` Eli Zaretskii

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=20120811062407.GA18660@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --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