From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21849 invoked by alias); 14 Aug 2002 13:09:40 -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 21754 invoked from network); 14 Aug 2002 13:09:38 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 14 Aug 2002 13:09:38 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17exu8-0001fp-00; Wed, 14 Aug 2002 08:09:40 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17exuT-00005M-00; Wed, 14 Aug 2002 09:10:01 -0400 Date: Wed, 14 Aug 2002 06:09:00 -0000 From: Daniel Jacobowitz To: Simon Posnjak Cc: gdb@sources.redhat.com Subject: ARM/Linux OSABI problems (was Re: breakpoints not working in gdbserver) Message-ID: <20020814131001.GA32550@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/msg00141.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). > > Then I strip the gdbserver and uploade it to the arm based bord and > run(access03 is the program I'm trying to debug): > > # ./gdbserver host:33000 ./access03 > Process ./access03 created; pid = 170 ... The interesting line in the debug output Simon sent me is: getpkt ("M40002b34,4:fedeffe7"); [sending ack] That's not an arm-linux breakpoint, it's an ARM breakpoint. That's why it isn't working. Simon, you need to debug the host GDB (particularly gdbarch_lookup_osabi) and try to establish why it is not selecting the Linux ABI. > 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)? ... wait! I know what's wrong. Does uClibc provide a .note.ABI-tag section, like glibc does? If not, that needs to be corrected, or GDB needs to find some other way to recognize uClibc binaries. (I should also test kernel debugging using an arm-linux GDB at some point. It used to work, which means that kgdb also expects the linux ABI breakpoint, but the kernel certainly doesn't (and shouldn't) have a .note.ABI-tag marking indicating it is a Linux userland binary.) -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer