From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4634 invoked by alias); 14 May 2008 12:49:14 -0000 Received: (qmail 4619 invoked by uid 22791); 14 May 2008 12:49:12 -0000 X-Spam-Check-By: sourceware.org Received: from mail.ashling.com (HELO ashling.com) (62.77.186.162) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 May 2008 12:48:44 +0000 Received: from Syam ([192.168.10.57]) by ashling.com (ashling.com [127.0.0.1]) (MDaemon PRO v9.6.5) with ESMTP id md50001007647.msg for ; Wed, 14 May 2008 13:48:41 +0100 X-Spam-Processed: ashling.com, Wed, 14 May 2008 13:48:41 +0100 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 192.168.10.57 X-Return-Path: jiju.george@nestgroup.net X-Envelope-From: jiju.george@nestgroup.net X-MDaemon-Deliver-To: gdb@sourceware.org From: "Jiju George T" To: Subject: Problem in using gdb 6.8 to step code in flash Date: Wed, 14 May 2008 12:49:00 -0000 Message-ID: <00b501c8b5c0$d47ed7d0$390aa8c0@ashmicro.ashling.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MDAV-Processed: ashling.com, Wed, 14 May 2008 13:48:42 +0100 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-05/txt/msg00110.txt.bz2 Hi All, =A0I am trying to single step some code in a MIPS embedded target flash mem= ory using GDB 6.8 and our own GDB Server for MIPS target. I am doing below steps 1) Start GDB server which connects to the MIPS target through a JTAG debugger probe and breaks the target at reset vector (0xBFC00000) 2) Start gdb and connect to GDB server. Gdb now connects to the target and shows $pc as 0xBFC00000 3) Issue stepi command. But gdb never gets back control since GDB server fails to set breakpoint on ROM. =A0=A0 When I repeat the same step using the sde-gdb provided by www.mips.c= om I am able to do the step operation successfully.=20 =A0=A0 I checked the difference between these two and fond out that the iss= ue is caused by the difference in the way sde-gdb and gdb 6.8 does step operation. SDE GDB issues step(s) command to GDB server where as gdb 6.8 tries to set breakpoint on next line and issue continue(c) command. Any idea on why the two gdb variants behave differently for step operation using same GDB server? How gdb decides what mechanism to be used for stepping operation?=20 Thanks, Jiju George =A0 =A0