From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13843 invoked by alias); 14 May 2008 14:29:09 -0000 Received: (qmail 13828 invoked by uid 22791); 14 May 2008 14:29:08 -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 14:28:48 +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 md50001007732.msg for ; Wed, 14 May 2008 15:28:43 +0100 X-Spam-Processed: ashling.com, Wed, 14 May 2008 15:28:43 +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: "'Daniel Jacobowitz'" Cc: References: <00b501c8b5c0$d47ed7d0$390aa8c0@ashmicro.ashling.com> <20080514130816.GA11707@caradoc.them.org> Subject: RE: Problem in using gdb 6.8 to step code in flash Date: Wed, 14 May 2008 14:29:00 -0000 Message-ID: <00eb01c8b5ce$cacb2320$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 In-Reply-To: <20080514130816.GA11707@caradoc.them.org> X-MDAV-Processed: ashling.com, Wed, 14 May 2008 15:28:45 +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/msg00112.txt.bz2 I am using configure --target=3Dmipsel-linux --host=3Di686-pc-linux-gnu for configuring gdb I am trying to build a gdb that can both debug linux kernel and some code in flash. Is it possible?=20 When I checked the gdb configure script, I can see below differences in MIPS sde and mips Linux configurations mips*-sde-elf*) skipdirs=3D"$skipdirs target-libiberty" noconfigdirs=3D"$noconfigdirs ${libgcj}" if test x$with_newlib =3D xyes; then noconfigdirs=3D"$noconfigdirs gprof" fi libgloss_dir=3Dmips ;; mips*-*-linux*) noconfigdirs=3D"$noconfigdirs target-newlib target-libgloss" ;; How do these configurations affect the stepping logic?=20 -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: 14 May 2008 14:08 To: Jiju George T Cc: gdb@sourceware.org Subject: Re: Problem in using gdb 6.8 to step code in flash On Wed, May 14, 2008 at 01:48:38PM +0100, Jiju George T wrote: > =A0=A0 I checked the difference between these two and fond out that the i= ssue 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 Is your GDB configured for mips-linux? The SDE debugger is configured for mips-elf. Try that configuration instead. --=20 Daniel Jacobowitz CodeSourcery