From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28065 invoked by alias); 6 Aug 2002 22:06:43 -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 28058 invoked from network); 6 Aug 2002 22:06:42 -0000 Received: from unknown (HELO conn.mc.mpls.visi.com) (208.42.156.2) by sources.redhat.com with SMTP; 6 Aug 2002 22:06:42 -0000 Received: from grante.comtrol.com (isis.visi.com [209.98.98.8]) by conn.mc.mpls.visi.com (Postfix) with SMTP id E2FE1811D for ; Tue, 6 Aug 2002 17:06:41 -0500 (CDT) Received: (qmail 29636 invoked by uid 500); 6 Aug 2002 22:11:03 -0000 Date: Tue, 06 Aug 2002 15:06:00 -0000 From: Grant Edwards To: Benjamin Tze-Kit Lee Cc: gdb@sources.redhat.com Subject: Re: debugging program on ARM target Message-ID: <20020806171100.A29621@visi.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from btlee@sfu.ca on Tue, Aug 06, 2002 at 02:44:40PM -0700 X-SW-Source: 2002-08/txt/msg00038.txt.bz2 On Tue, Aug 06, 2002 at 02:44:40PM -0700, Benjamin Tze-Kit Lee wrote: > I would like to debug a program on a board that's using the ARM > cpu. In order to do that I think I would need the "rdi" option > for target. Maybe. You use the "rdi" target if your target talks ADP (Angel Debugging Protocol). If you've got an eval board with the Angel ROM monitor, then you can probably use rdi. You can also use the "rdi" target if you're using a JTAG interface box that talks ADP (e.g. EPI's Jeeni or ARM's EmbeddedICE). > How can I get that option to work? You issue the command target rdi s=/dev/ttyS0 Replace /dev/ttyS0 with the device name of the serial port you've connected to the target. If you want to use rdi, I'd recommend getting a nice recent CVS snapshot, since the rdi code used to suck up a lot of CPU time while busy-waiting for ADP messages. I've got a patch for 5.2.1 if you want. There are other JTAG interface boxes that use other protocols, and there are other ROM monitors that use other protocols (like GDB's "remote" protocol). > I've also seen some examples in the web that I can do the > remote debugging on the ARM by using a program called > arm-elf-gdb That is just GDB that has been built for debugging ARM code. > ........ but I am not sure where I can get it. I think the easiest thing is to build it from sources, but that's probably just a personality flaw on my part. Here's one set of instructions on building ARM tools under Unix: http://sources.redhat.com/ecos/tools/linux-arm-elf.html Basically, when you configure gdb, just specify "--target=arm-elf" and do the build. You may have to build binutils first -- I always do it that way. I've got a source RPM for arm-elf-gdb sitting around somewhere. If you want a copy let me know. > Is that Linux based? Or it actually runs on Unix too? It's just GDB. -- Grant Edwards grante@visi.com