From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25756 invoked by alias); 1 Sep 2008 04:11:42 -0000 Received: (qmail 25745 invoked by uid 22791); 1 Sep 2008 04:11:41 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 01 Sep 2008 04:10:54 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 8E21798417; Mon, 1 Sep 2008 04:10:52 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 8F13C983CE; Mon, 1 Sep 2008 04:10:51 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Ka0kc-0001vl-J8; Mon, 01 Sep 2008 00:10:50 -0400 Date: Mon, 01 Sep 2008 04:11:00 -0000 From: Daniel Jacobowitz To: Michael Qiu Cc: gdb@sourceware.org Subject: Re: gdb stub implement questions Message-ID: <20080901041050.GA7137@caradoc.them.org> Mail-Followup-To: Michael Qiu , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00001.txt.bz2 On Mon, Sep 01, 2008 at 12:02:38PM +0800, Michael Qiu wrote: > Hi Guys, > I'm using ucos/ii and an r3k like mips core for my project. I'm > going to add a gdb-stub on my target. But I still have some uncleared > questions, can anyone give me a hand? > > 1. Is there any hardware requirement for the gdb-stub running > correctly? e.g. special instructions? Currently, my core only support > "bkpt". Is it enough? Yes, that's probably enough. > 2. I'v read the gdb-stub from yamon, but it seems only work for a > bootloader. There is no multitask. The yamon shell in charge of the > context switch, but it only a ping-pang like switch. How can I support > multitask in ucos/ii? > > 3. In general, the gdb-stub should be implemented in a bootloader or > in OS level, or user spaces? Sorry, the answer to these are both 'it depends'. These are more questions about your operating system than about GDB. You probably want to model each task as a 'thread' to gdb. -- Daniel Jacobowitz CodeSourcery