From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23198 invoked by alias); 13 Aug 2002 22:42:18 -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 23187 invoked from network); 13 Aug 2002 22:42:17 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 13 Aug 2002 22:42:17 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17ekMl-0000rD-00; Tue, 13 Aug 2002 17:42:19 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17ekN6-0004QV-00; Tue, 13 Aug 2002 18:42:40 -0400 Date: Tue, 13 Aug 2002 15:42:00 -0000 From: Daniel Jacobowitz To: Simon Posnjak Cc: gdb@sources.redhat.com Subject: Re: breakpoints not working in gdbserver Message-ID: <20020813224239.GA16803@nevyn.them.org> Mail-Followup-To: Simon Posnjak , gdb@sources.redhat.com References: <1029277842.6335.42.camel@klada.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1029277842.6335.42.camel@klada.dyndns.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00135.txt.bz2 On Wed, Aug 14, 2002 at 12:30:42AM +0200, Simon Posnjak wrote: > Hi all, > > I'm trying out a cross-debuger for arm/ia32 development. I have build > gdb for arm that runs on ia32 (./configure --host=i686-pc-linux-gnu > --target=armv4l-unknown-linux --prefix=/usr/local/arm/ > --exec-prefix=/usr/local/arm/ --program-prefix=arm-) > and gdbserver for arm (sh configure --target=armv4l-unknown-linux). That's not right. You have to configure gdbserver using --host=armv4l-unknown-linux, not --target. > Program received signal SIGILL, Illegal instruction. > 0x40002b38 in _dl_debug_state () > from /staff2/4pot/buildroot/build/stage/lib/ld-uClibc.so.0 > (gdb) bt > #0 0x40002b38 in _dl_debug_state () > from /staff2/4pot/buildroot/build/stage/lib/ld-uClibc.so.0 > #1 0x40001c74 in _dl_parse_copy_information () > from /staff2/4pot/buildroot/build/stage/lib/ld-uClibc.so.0 > (gdb) > > The program dies with Illegal instruction - if I run it without > gdbserver it is working fine. > > I'm using a home-made linux system: > kernel 2.4.18 > uClibc 0.9.14 > gcc-2.95.3 > > Is this maybe a problem with uclibc... or is this problem of > gdb(server)? Now, I just checked, and the FSF tree does indeed have the correct breakpoint instruction on ARM. And GDB is placing that breakpoint anyway, not gdbserver. I assume you're actually running a Linux kernel - Linux has a different breakpoint convention from ARM hardware. Need a little more information. Please set remote_debug to 1 and rebuild gdbserver, and send the output... -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer