From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9229 invoked by alias); 16 Sep 2008 16:32:35 -0000 Received: (qmail 9216 invoked by uid 22791); 16 Sep 2008 16:32:33 -0000 X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.189) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 16 Sep 2008 16:31:54 +0000 Received: by ti-out-0910.google.com with SMTP id d10so1831125tib.12 for ; Tue, 16 Sep 2008 09:31:51 -0700 (PDT) Received: by 10.110.53.14 with SMTP id b14mr1673051tia.8.1221582711731; Tue, 16 Sep 2008 09:31:51 -0700 (PDT) Received: from fqiux61 ( [222.64.62.156]) by mx.google.com with ESMTPS id y5sm1128786tia.8.2008.09.16.09.31.49 (version=SSLv3 cipher=RC4-MD5); Tue, 16 Sep 2008 09:31:50 -0700 (PDT) From: "Qiu Feng" To: Subject: MIPS stub problem Date: Tue, 16 Sep 2008 16:32:00 -0000 Message-ID: <4D79C9B593D04500AF1FD6DCEF5EB430@fqiux61> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 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-09/txt/msg00103.txt.bz2 Hi all, =A0 I am implementing a stub for mips. I found epc always contains the position of next instuction after the inserted "break", I wonder if PC client gdb will take it into acount? Should I manually rollback the epc to the location of replaced original instruction? =A0 Another question, does pc side GDB only read local varibles by offset of SP (should be $29)? =A0 =A0 =A0 Best regards Michael Qiu