From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24159 invoked by alias); 9 Nov 2006 15:31:42 -0000 Received: (qmail 24151 invoked by uid 22791); 9 Nov 2006 15:31:42 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 09 Nov 2006 15:31:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GiBsK-0001mJ-Oz; Thu, 09 Nov 2006 10:31:32 -0500 Date: Thu, 09 Nov 2006 15:31:00 -0000 From: Daniel Jacobowitz To: Johan Thorb Cc: gdb@sourceware.org Subject: Re: GDB support for mixed ARM9 V5 and thumb code Message-ID: <20061109153132.GA6798@nevyn.them.org> Mail-Followup-To: Johan Thorb , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00045.txt.bz2 On Thu, Nov 09, 2006 at 04:27:17PM +0100, Johan Thorb wrote: > Hi all, > > I am trying to use gdb 6.5 for target arm and on host Win/MinGW. I > have compiled such a version, and I do get undeterministic behavior > when using the debugger. I try to debug an elf file, which is to be > eabi compliant. It is not compiled with gcc, and has a gdb-stub built > in. > > To rule out gdb problematics I have two questions: > 1) Does GDB 6.5 support mixed ARM v5 and thumb instruction set binaries? Yes. > 2) What is the right compilation config parameters in this case? > I have tried the --target=arm-thumb-elf and --target=arm-gdb-elf The middle field doesn't matter. Either of those should work, though you probably want --target=arm-eabi. > Could anyone please help me out in this matter? You haven't told us anything about what goes wrong, so there's no other help we can offer yet. -- Daniel Jacobowitz CodeSourcery