public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: ligang@sunnorth.com.cn
To: gdb@sourceware.org
Subject: mi-watch.exp fail, pls help
Date: Thu, 17 Jan 2008 03:58:00 -0000	[thread overview]
Message-ID: <OF32C474D6.F65DFBB4-ON482573D3.0014F615-482573D3.0015C0CE@sunnorth.com.cn> (raw)

hello all,

When i run gdb testsuite, mi-watch.exp fail.

See the following diassembly:

34:  C = A + B;
     116:   1742        lw!     r7, [r2,8]
     118:   1641        lw!     r6, [r2,4]
     11a:   80c7 1810   add     r6, r7, r6
     11e:   2640        sw!     r6, [r2,0]
35:  return 0;
     120:   64c0        ldiu!   r6, 0
36:}
     122:   4086        mv!     r4, r6
     124:   5c8c        addi!   r2, 12
     126:   4002        mv!     r0, r2
     128:   0042        pop!    r2
     12a:   0083        br!     r3

After setting watchpoint to C, it will be hit at 0x11e, and PC will be 
0x120 at the time,
but GDB will execute a single step, after that, PC will be 0x122, so 
source line will be 36 but not 
expected 35.
Anyone can tell me how to resolve this problem?
Thanks.

             reply	other threads:[~2008-01-17  3:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17  3:58 ligang [this message]
2008-01-17 14:44 ` Daniel Jacobowitz
2008-01-18  4:26   ` ligang
2008-01-18 15:20     ` Daniel Jacobowitz
2008-01-21  1:16       ` ligang
2008-01-21  3:16         ` Daniel Jacobowitz

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=OF32C474D6.F65DFBB4-ON482573D3.0014F615-482573D3.0015C0CE@sunnorth.com.cn \
    --to=ligang@sunnorth.com.cn \
    --cc=gdb@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).