From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 969 invoked by alias); 26 Jun 2006 10:42:48 -0000 Received: (qmail 960 invoked by uid 22791); 26 Jun 2006 10:42:47 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0102.google.com (HELO nz-out-0102.google.com) (64.233.162.192) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Jun 2006 10:42:45 +0000 Received: by nz-out-0102.google.com with SMTP id 12so1310312nzp for ; Mon, 26 Jun 2006 03:42:43 -0700 (PDT) Received: by 10.37.14.31 with SMTP id r31mr3405001nzi; Mon, 26 Jun 2006 03:42:43 -0700 (PDT) Received: by 10.36.250.57 with HTTP; Mon, 26 Jun 2006 03:42:43 -0700 (PDT) Message-ID: <85e0e3140606260342m1cb35c83xe1cc0a1873eda427@mail.gmail.com> Date: Mon, 26 Jun 2006 13:03:00 -0000 From: Niklaus To: Niklaus , gdb@sources.redhat.com Subject: Re: arm-elf and mips-deb-linux gdb In-Reply-To: <20060624132745.GA26555@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <85e0e3140606240419ge81ab34ubdbf64dc0ee352f0@mail.gmail.com> <20060624132745.GA26555@nevyn.them.org> 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-06/txt/msg00234.txt.bz2 On 6/24/06, Daniel Jacobowitz wrote: > On Sat, Jun 24, 2006 at 05:19:04PM +0600, Niklaus wrote: > > Hi, > > i just built a cross compiler with target=arm-elf .Then compiled an > > program first.c > > which contained > > > > 1 int main() > > 2 { > > 3 int i; > > 4 for(i=0;i<10;i++) > > 5 ; > > 6 return i; > > 8 } > > > > now i built gdb with target=arm-elf and ran in simulator mode like > > > > target sim > > load first > > b 4 > > > > run > > > > it break > > > > but when i do > > b 5 > > it goes into an infinite loop and i have to interrupt it. > > The most important thing in a bug report is being specific. Please > show us a complete log of the GDB session. > pro@deb:~/armenv/bin$ ./arm-elf-gdb first.o GNU gdb 6.5 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"... (gdb) target sim Connected to the simulator. (gdb) list 1 2 int main() 3 { 4 int i=3; 5 while(i<10){ 6 i++; 7 } 8 return i; 9 } (gdb) b 6 Breakpoint 1 at 0x1c: file first.c, line 6. (gdb) load first.o Loading section .text, size 0x40 vma 0x0 Start address 0x0 Transfer rate: 512 bits in <1 sec. (gdb) run Starting program: /home/pro/armenv/bin/first.o after 2 mins or so i interrupt with a Ctrl-C Program received signal SIGINT, Interrupt. 0xf26ed660 in ?? () (gdb) Sometimes when i ran it sometime back i got " Unhandled v6 thumb insn: e92d", i am not sure why i got this. But at that time path was not exported properly.when i export it goes into infinite loop as show above. > > The second questions is > > i built a mips-deb-linux helloworld program with cross gcc-glibc. > > > > not under mips-deb-linux-gdb > > > > the same program doesn't even load > > it says vma something > > The MIPS simulator can not run Linux binaries. > > -- > Daniel Jacobowitz > CodeSourcery >