From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27730 invoked by alias); 26 Sep 2002 05:22:36 -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 27723 invoked from network); 26 Sep 2002 05:22:35 -0000 Received: from unknown (HELO hzvscan2.utstar.com.cn) (210.83.142.27) by sources.redhat.com with SMTP; 26 Sep 2002 05:22:35 -0000 Received: from tiger.utstar.com.cn (hzvscan2 [127.0.0.1]) by hzvscan2.utstar.com.cn (8.11.6/8.11.6) with ESMTP id g8QLLv603563 for ; Thu, 26 Sep 2002 13:21:57 -0800 Received: from BIANHZ ([172.16.235.46]) by tiger.utstar.com.cn with ESMTP id g8Q5HCY22439 for ; Thu, 26 Sep 2002 13:17:12 +0800 Message-Id: <200209260517.g8Q5HCY22439@tiger.utstar.com.cn> From: "bian hz" To: "gdb@sources.redhat.com" Subject: How to use arm-elf-gdb Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Date: Wed, 25 Sep 2002 22:22:00 -0000 X-SW-Source: 2002-09/txt/msg00424.txt.bz2 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.