From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14805 invoked by alias); 17 Jan 2008 03:58:17 -0000 Received: (qmail 14797 invoked by uid 22791); 17 Jan 2008 03:58:16 -0000 X-Spam-Check-By: sourceware.org Received: from mail.sunnorth.com.cn (HELO bjmsw01.sunnorth.com.cn) (124.42.0.200) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Jan 2008 03:57:59 +0000 Received: from maillog.sunnorth.com.cn (unverified [172.20.10.250]) by bjmsw01.sunnorth.com.cn (Clearswift SMTPRS 5.2.9) with ESMTP id for ; Thu, 17 Jan 2008 11:57:52 +0800 Received: from ntns1cn.sunnorth.com.cn (ntns1cn.sunnorth.com.cn [172.20.10.252]) by maillog.sunnorth.com.cn (8.12.10/8.12.10) with ESMTP id m0H41ggw030703 for ; Thu, 17 Jan 2008 12:01:42 +0800 To: gdb@sourceware.org MIME-Version: 1.0 Subject: mi-watch.exp fail, pls help X-Mailer: Lotus Notes Release 6.5 September 26, 2003 Message-ID: From: ligang@sunnorth.com.cn Date: Thu, 17 Jan 2008 03:58:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00138.txt.bz2 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.