Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to use arm-elf-gdb
@ 2002-09-25 22:22 bian hz
  2002-09-26  8:52 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: bian hz @ 2002-09-25 22:22 UTC (permalink / raw)
  To: gdb

Hi everyone!
I'm a new user of arm-elf-gdb, but I have not made it work till now. I went through like this.
at first I got a .elf file to debug. hello.c is very simple and not call any lib funcion.
$ arm-elf-gcc -g -o hello.elf hello.c
$ arm-elf-gdb hello.elf
GNU gdb 5.0
Copyright 2000 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-linux --target=arm-elf"...
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .interp, size 0x13 vma 0x80480f4
Loading section .note.ABI-tag, size 0x20 vma 0x8048108
Loading section .hash, size 0x30 vma 0x8048128
Loading section .dynsym, size 0x70 vma 0x8048158
Loading section .dynstr, size 0x8e vma 0x80481c8
Loading section .gnu.version, size 0xe vma 0x8048256
Loading section .gnu.version_r, size 0x30 vma 0x8048264
Loading section .rel.got, size 0x8 vma 0x8048294
Loading section .rel.plt, size 0x20 vma 0x804829c
Loading section .init, size 0x18 vma 0x80482bc
Loading section .plt, size 0x50 vma 0x80482d4
Loading section .text, size 0x170 vma 0x8048330
Loading section .fini, size 0x1e vma 0x80484a0
Loading section .rodata, size 0x8 vma 0x80484c0
Loading section .data, size 0x10 vma 0x80494c8
Loading section .eh_frame, size 0x4 vma 0x80494d8
Loading section .ctors, size 0x8 vma 0x80494dc
Loading section .dtors, size 0x8 vma 0x80494e4
Loading section .got, size 0x20 vma 0x80494ec
Loading section .dynamic, size 0xa0 vma 0x804950c
Start address 0x8048330
Transfer rate: 9544 bits in <1 sec.
(gdb) run
Starting program: /home/bianhz/tmp/hello 


But then the screen was frozen and the program was running not to stop.
Even if I set a breakpoint before run, the problem is same.
Who can tell me the reason why I can't make it work?
Does the simulor need to config?

Thanks in advance.



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

* Re: How to use arm-elf-gdb
  2002-09-25 22:22 How to use arm-elf-gdb bian hz
@ 2002-09-26  8:52 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2002-09-26  8:52 UTC (permalink / raw)
  To: bian hz; +Cc: gdb

On Thu, 26 Sep 2002, bian hz wrote:

> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.

I think this is your problem... I seem to recall that there were issues 
with arm-elf near the 5.0 release. (A search of the mailing list archives 
might show something.)

I've tried this on cvs head, and it (at least) stops at my breakpoint in 
main. I suggest trying 5.2 or 5.3.

Keith



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

end of thread, other threads:[~2002-09-26 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25 22:22 How to use arm-elf-gdb bian hz
2002-09-26  8:52 ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox