From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17863 invoked by alias); 29 Jun 2005 05:44:32 -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 17694 invoked by uid 22791); 29 Jun 2005 05:44:23 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.203) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 29 Jun 2005 05:44:22 +0000 Received: by wproxy.gmail.com with SMTP id 55so728269wri for ; Tue, 28 Jun 2005 22:44:21 -0700 (PDT) Received: by 10.54.6.16 with SMTP id 16mr40406wrf; Tue, 28 Jun 2005 22:44:21 -0700 (PDT) Received: by 10.54.14.50 with HTTP; Tue, 28 Jun 2005 22:44:21 -0700 (PDT) Message-ID: Date: Wed, 29 Jun 2005 05:44:00 -0000 From: Rohit Agarwal Reply-To: Rohit Agarwal To: Rohit Agarwal , nora pan , gdb@sources.redhat.com, drow@false.org Subject: Re: SIGTRAP error In-Reply-To: <20050628131413.GC28098@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050628131413.GC28098@nevyn.them.org> X-SW-Source: 2005-06/txt/msg00304.txt.bz2 Thanks a lot Daniel, that worked. so finally, i did=20 ./configure --prefix=3D/opt/arm-gdb --target=3Darm-elf --host=3Di686-pc-lin= ux-gnu make make install it got installed in /opt/arm-gdb when i invoked gdb from /opt/arm-gdb/bin/arm-elf-gdb i got the folowing res= ult [root@mahesh bin]# ./arm-elf-gdb -nw /opt/ecos/ecos/ecoswork/install/tests/kernel/current/tests/bin_sem0 GNU gdb 6.3 Copyright 2004 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 condition= s. 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=3Di686-pc-linux-gnu --target=3Darm-elf".= .. (gdb) set endian big The target is assumed to be big endian (gdb) set remotebaud 115200 (gdb) target remote /dev/ttyS0 Remote debugging using /dev/ttyS0 0x50012954 in ?? () (gdb) load Loading section .rom_vectors, size 0x40 lma 0x80000 Memory access error while loading section .rom_vectors. (gdb) However if i run arm-elf-gdb version 5.3, atleast the load is complete, although for executing, i get the same problem. [root@mahesh ecoswork]# arm-elf-gdb -nw install/tests/kernel/current/tests/bin_sem0 GNU gdb 5.3 (eCosCentric) Copyright 2002 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 condition= s. 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=3Di686-pc-linux-gnu --target=3Darm-elf".= .. (gdb) set endian big The target is assumed to be big endian (gdb) set remotebaud 115200 (gdb) target remote /dev/ttyS0 Remote debugging using /dev/ttyS0 0x50012954 in ?? () (gdb) load Loading section .rom_vectors, size 0x40 lma 0x80000 Loading section .text, size 0x6d48 lma 0x80040 Loading section .rodata, size 0x420 lma 0x86d88 Loading section .data, size 0x354 lma 0x871a8 Start address 0x80040, load size 29948 Transfer rate: 79861 bits/sec, 299 bytes/write. (gdb) continue Continuing. =20 Program received signal SIGTRAP, Trace/breakpoint trap. 0x00080044 in warm_reset () (gdb) Can anyone suggest what the error is? ROHIT On 6/28/05, Daniel Jacobowitz wrote: > On Tue, Jun 28, 2005 at 11:53:57AM +0530, Rohit Agarwal wrote: > > hi > > i got the source for gdb-6.3. applied the patch > > "gdb-6.3-load-remote-target-bug.patch". > > next i configured gdb by typing "./configure --prefix=3D/opt/arm-gdb > > --target=3Darm-elf --host=3Di686-pc-linux-gnu" which completed without = any > > errors. > > when i do a make, this is what i get.. > >=20 > > Configuring in libiberty > > configure: loading cache ./config.cache > > configure: error: `target_alias' has changed since the previous run: > > configure: former value: i686-pc-linux-gnu > > configure: current value: arm-elf > > configure: error: changes in the environment can compromise the build > > configure: error: run `make distclean' and/or `rm ./config.cache' and > > start overmake: *** [configure-libiberty] Error 1 > >=20 > > how can i fix this? make distclean and rm ./config.cache doesn't help. > > on redoing make, i get the same error.. >=20 > Start from an empty directory. >=20 > --=20 > Daniel Jacobowitz > CodeSourcery, LLC >=20 --=20 if u dont know it, it doesnt exist