From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11000 invoked by alias); 8 Dec 2002 01:33:42 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10993 invoked from network); 8 Dec 2002 01:33:41 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 8 Dec 2002 01:33:41 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18KsCY-0004Id-00; Sat, 07 Dec 2002 21:33:54 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18KqKm-0002Qx-00; Sat, 07 Dec 2002 20:34:16 -0500 Date: Sat, 07 Dec 2002 17:33:00 -0000 From: Daniel Jacobowitz To: Chris Gniady Cc: gdb@sources.redhat.com Subject: Re: gdbserver on ixp1200 Message-ID: <20021208013416.GA9337@nevyn.them.org> Mail-Followup-To: Chris Gniady , gdb@sources.redhat.com References: <1039308677.1853.ezmlm@sources.redhat.com> <3DF2A06A.7070603@ecn.purdue.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DF2A06A.7070603@ecn.purdue.edu> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00157.txt.bz2 On Sat, Dec 07, 2002 at 08:29:14PM -0500, Chris Gniady wrote: > Hello, > I have searched all over the web and did not find a clear answer. I am > trying to run gdbserver on ixp1200. It is SA1100 with linux 2.3.99. I > have compiled the gdb 5.2.1 and gdbserver from this distribution. Here > is what happens: > 1) FOR GDB configured as "--host=i686-pc-linux-gnu --target=arm-linux" > I when i execute a breakpoint the instruction is simply skipped. My > code is > > while(1); > prinf("done\n"); > > When I set breakpoint at while(1) the printf gets executed. so it is skipped > I am also not able to single step. > > 2) FOR GDB configured as "--host=i686-pc-linux-gnu --target=arm-elf" > I am able to single step but when I set a breakpoint I get on host: > > > Program received signal SIGILL, Illegal instruction. > > 0x02001590 in main (argc=1, argv=0xbffffdc4) at tmmain.c:82 > > 82 while(1) > > AND on remote: > > Treadmartm (280): undefined instruction: pc=02001590 > > Can anyone help me with correct configuration or patches, to handle > breakpoints in this configuration. Don't configure for arm-elf, that won't work. I need more information on the problem with arm-linux. Would you post these things: - output of a gdb session with 'set debug remote 1' - output of a gdb session with 'set debug target 1' - output of arm-linux-objdump -d a.out I do use an arm-linux configured GDB and I haven't had these kinds of problems with it... -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer