From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31310 invoked by alias); 30 Jan 2006 20:16:12 -0000 Received: (qmail 31302 invoked by uid 22791); 30 Jan 2006 20:16:11 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.204) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jan 2006 20:16:09 +0000 Received: by zproxy.gmail.com with SMTP id 13so1218963nzn for ; Mon, 30 Jan 2006 12:16:08 -0800 (PST) Received: by 10.65.84.13 with SMTP id m13mr2053211qbl; Mon, 30 Jan 2006 12:16:07 -0800 (PST) Received: by 10.64.76.5 with HTTP; Mon, 30 Jan 2006 12:16:07 -0800 (PST) Message-ID: Date: Mon, 30 Jan 2006 20:23:00 -0000 From: Mitchell Fang To: gdb@sourceware.org Subject: GDB stub questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00333.txt.bz2 I have a question about the GDB stub. Where does the stub run? Is it on the host machine, the target board, or the JTAG controller. I'm working on a project to connect GDB to a PowerPC4xx board using a JTAG controller. It's suppose to generic enough to support different types of controller (USB, ethernet, PCI...etc). I have .dll's for the controllers. I would like to avoid having another program running to convert the GDB remote protocol to JTAG commands. Is it possible to edit GDB so that it automatically uses the JTAG controller's .dll's directly? I am currently thinking no. From what I understand about GDB, I think that I need to use a stub since I'm doing a debugging remotely. I've been reading the GDB user manual about implementing a remote stub but not really getting it. But I don't totally understand how a stub works and where it is suppose to run so I'm kinda stuck. My thinking is that the stub is suppose to run on the target board. But then how do you build/make the stub an application so that it's able to run on the target board? I think I'm just missing the overall picture and I wanted to make sure that I start off in the right direction. Any input would be appreciated. Thanks, Mitchell