public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: SIGTRAP error
@ 2005-06-24 17:01 nora pan
  2005-06-28  5:27 ` Rohit Agarwal
  0 siblings, 1 reply; 8+ messages in thread
From: nora pan @ 2005-06-24 17:01 UTC (permalink / raw)
  To: rohitrules, gdb

Hello, Rohit:

You may want to try the patch for fixing PR 1944 at 
http://sources.redhat.com/cgi-bin/gnatsweb.pl. The patch is against
head gdb.

Gdb 5.3 may be too old. Most of the time people would try the latest
release to see if the fix is there.

Thanks,

Qunying


>[root@mahesh ecoswork]# arm-elf-gdb -nw
>install/tests/hal/common/current/tests/basic
>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 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) 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 0x6c60 lma 0x80040
>Loading section .rodata, size 0x470 lma 0x86ca0
>Loading section .data, size 0x34c lma 0x87110
>Start address 0x80040, load size 29788
>Transfer rate: 79434 bits/sec, 300 bytes/write.
>(gdb) continue
>Continuing.
 
>Program received signal SIGTRAP, Trace/breakpoint trap.
>0x00080044 in warm_reset ()
>(gdb)

>i tried looking into the archives but couldnt find nythg tht wud >fit here.
>plz reply soon.
>ROHIT AGARWAL

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: SIGTRAP error
  2005-06-24 17:01 SIGTRAP error nora pan
@ 2005-06-28  5:27 ` Rohit Agarwal
  2005-06-28  6:24   ` Rohit Agarwal
  0 siblings, 1 reply; 8+ messages in thread
From: Rohit Agarwal @ 2005-06-28  5:27 UTC (permalink / raw)
  To: nora pan; +Cc: gdb

Thanks a lot for taking interest in my problem.

However, the patch u told me was for gdb-6.3 whereas i have gdb-5.3 on
my computer.

Also, i tried looking for the latest version of arm-elf-gdb but the
latest version which i could find was 5.3

Im still stuck where I was. Can anyone suggest something please

ROHIT

On 6/24/05, nora pan <qunyingpan@gmail.com> wrote:
> Hello, Rohit:
> 
> You may want to try the patch for fixing PR 1944 at 
> http://sources.redhat.com/cgi-bin/gnatsweb.pl. The patch is against
> head gdb.
> 
> Gdb 5.3 may be too old. Most of the time people would try the latest
> release to see if the fix is there.
> 
> Thanks,
> 
> Qunying
> 
> 
> >[root@mahesh ecoswork]# arm-elf-gdb -nw
> >install/tests/hal/common/current/tests/basic
> >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
> 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) 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 0x6c60 lma 0x80040
> >Loading section .rodata, size 0x470 lma 0x86ca0
> >Loading section .data, size 0x34c lma 0x87110
> >Start address 0x80040, load size 29788
> >Transfer rate: 79434 bits/sec, 300 bytes/write.
> >(gdb) continue
> >Continuing.
>  
> >Program received signal SIGTRAP, Trace/breakpoint trap.
> >0x00080044 in warm_reset ()
> >(gdb)
> 
> >i tried looking into the archives but couldnt find nythg tht wud >fit
> here.
> >plz reply soon.
> >ROHIT AGARWAL
> 


-- 
if u dont know it, it doesnt exist

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: SIGTRAP error
  2005-06-28  5:27 ` Rohit Agarwal
@ 2005-06-28  6:24   ` Rohit Agarwal
  2005-06-28 13:14     ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Rohit Agarwal @ 2005-06-28  6:24 UTC (permalink / raw)
  To: nora pan; +Cc: gdb

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=/opt/arm-gdb
--target=arm-elf --host=i686-pc-linux-gnu" which completed without any
errors.
when i do a make, this is what i get..

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

how can i fix this? make distclean and rm ./config.cache doesn't help.
on redoing make, i get the same error..

thanks
ROHIT

On 6/28/05, Rohit Agarwal <rohitrules@gmail.com> wrote:
> Thanks a lot for taking interest in my problem.
> 
> However, the patch u told me was for gdb-6.3 whereas i have gdb-5.3 on
> my computer.
> 
> Also, i tried looking for the latest version of arm-elf-gdb but the
> latest version which i could find was 5.3
> 
> Im still stuck where I was. Can anyone suggest something please
> 
> ROHIT
> 
> On 6/24/05, nora pan <qunyingpan@gmail.com> wrote:
> > Hello, Rohit:
> > 
> > You may want to try the patch for fixing PR 1944 at 
> > http://sources.redhat.com/cgi-bin/gnatsweb.pl. The patch is against
> > head gdb.
> > 
> > Gdb 5.3 may be too old. Most of the time people would try the latest
> > release to see if the fix is there.
> > 
> > Thanks,
> > 
> > Qunying
> > 
> > 
> > >[root@mahesh ecoswork]# arm-elf-gdb -nw
> > >install/tests/hal/common/current/tests/basic
> > >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
> > 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) 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 0x6c60 lma 0x80040
> > >Loading section .rodata, size 0x470 lma 0x86ca0
> > >Loading section .data, size 0x34c lma 0x87110
> > >Start address 0x80040, load size 29788
> > >Transfer rate: 79434 bits/sec, 300 bytes/write.
> > >(gdb) continue
> > >Continuing.
> >  
> > >Program received signal SIGTRAP, Trace/breakpoint trap.
> > >0x00080044 in warm_reset ()
> > >(gdb)
> > 
> > >i tried looking into the archives but couldnt find nythg tht wud >fit
> > here.
> > >plz reply soon.
> > >ROHIT AGARWAL
> > 
> 
> 
> -- 
> if u dont know it, it doesnt exist
> 


-- 
if u dont know it, it doesnt exist

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: SIGTRAP error
  2005-06-28  6:24   ` Rohit Agarwal
@ 2005-06-28 13:14     ` Daniel Jacobowitz
  2005-06-29  5:44       ` Rohit Agarwal
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2005-06-28 13:14 UTC (permalink / raw)
  To: Rohit Agarwal; +Cc: nora pan, gdb

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=/opt/arm-gdb
> --target=arm-elf --host=i686-pc-linux-gnu" which completed without any
> errors.
> when i do a make, this is what i get..
> 
> 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
> 
> how can i fix this? make distclean and rm ./config.cache doesn't help.
> on redoing make, i get the same error..

Start from an empty directory.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: SIGTRAP error
  2005-06-28 13:14     ` Daniel Jacobowitz
@ 2005-06-29  5:44       ` Rohit Agarwal
  2005-06-29 13:07         ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Rohit Agarwal @ 2005-06-29  5:44 UTC (permalink / raw)
  To: Rohit Agarwal, nora pan, gdb, drow

Thanks a lot Daniel,
that worked.
so finally, i did 

./configure --prefix=/opt/arm-gdb --target=arm-elf --host=i686-pc-linux-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 result

[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 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) 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 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) 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.
 
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 <drow@false.org> 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=/opt/arm-gdb
> > --target=arm-elf --host=i686-pc-linux-gnu" which completed without any
> > errors.
> > when i do a make, this is what i get..
> > 
> > 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
> > 
> > how can i fix this? make distclean and rm ./config.cache doesn't help.
> > on redoing make, i get the same error..
> 
> Start from an empty directory.
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery, LLC
> 


-- 
if u dont know it, it doesnt exist

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: SIGTRAP error
  2005-06-29  5:44       ` Rohit Agarwal
@ 2005-06-29 13:07         ` Daniel Jacobowitz
  2005-06-29 20:17           ` Qunying Pan
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2005-06-29 13:07 UTC (permalink / raw)
  To: Rohit Agarwal; +Cc: nora pan, gdb

On Wed, Jun 29, 2005 at 11:14:21AM +0530, Rohit Agarwal wrote:
> Thanks a lot Daniel,
> that worked.
> so finally, i did 
> 
> ./configure --prefix=/opt/arm-gdb --target=arm-elf --host=i686-pc-linux-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 result
> 
> [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 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) 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)

Please try CVS, not 6.3.  Load was broken in 6.3.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: SIGTRAP error
  2005-06-29 13:07         ` Daniel Jacobowitz
@ 2005-06-29 20:17           ` Qunying Pan
  0 siblings, 0 replies; 8+ messages in thread
From: Qunying Pan @ 2005-06-29 20:17 UTC (permalink / raw)
  To: Rohit Agarwal, nora pan, gdb

> > [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 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) 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)

You also need to apply gdb-6.3-load-remote-target-bug.patch. This is
what PR1944 is fixing.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* SIGTRAP error
@ 2005-06-24  5:30 Rohit Agarwal
  0 siblings, 0 replies; 8+ messages in thread
From: Rohit Agarwal @ 2005-06-24  5:30 UTC (permalink / raw)
  To: gdb

hi,

im very new to gdb. im trying to run a test program bin_sem0 on my
IXDP425 board. im using arm-elf-gdb for this.

[root@mahesh ecoswork]# arm-elf-gdb -nw
install/tests/hal/common/current/tests/basic
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 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) 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 0x6c60 lma 0x80040
Loading section .rodata, size 0x470 lma 0x86ca0
Loading section .data, size 0x34c lma 0x87110
Start address 0x80040, load size 29788
Transfer rate: 79434 bits/sec, 300 bytes/write.
(gdb) continue
Continuing.
 
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00080044 in warm_reset ()
(gdb)

i tried looking into the archives but couldnt find nythg tht wud fit here.
plz reply soon.
ROHIT AGARWAL
-- 
if u dont know it, it doesnt exist

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-06-29 20:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24 17:01 SIGTRAP error nora pan
2005-06-28  5:27 ` Rohit Agarwal
2005-06-28  6:24   ` Rohit Agarwal
2005-06-28 13:14     ` Daniel Jacobowitz
2005-06-29  5:44       ` Rohit Agarwal
2005-06-29 13:07         ` Daniel Jacobowitz
2005-06-29 20:17           ` Qunying Pan
  -- strict thread matches above, loose matches on Subject: below --
2005-06-24  5:30 Rohit Agarwal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).