From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8020 invoked by alias); 1 Sep 2008 04:03:16 -0000 Received: (qmail 8011 invoked by uid 22791); 1 Sep 2008 04:03:15 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.230) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 01 Sep 2008 04:02:41 +0000 Received: by wr-out-0506.google.com with SMTP id c55so1851760wra.0 for ; Sun, 31 Aug 2008 21:02:38 -0700 (PDT) Received: by 10.90.86.10 with SMTP id j10mr7175755agb.22.1220241758233; Sun, 31 Aug 2008 21:02:38 -0700 (PDT) Received: by 10.90.31.7 with HTTP; Sun, 31 Aug 2008 21:02:38 -0700 (PDT) Message-ID: Date: Mon, 01 Sep 2008 04:03:00 -0000 From: "Michael Qiu" To: gdb@sourceware.org Subject: gdb stub implement questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00000.txt.bz2 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? 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? Best regards