From: Daniel Jacobowitz <drow@false.org>
To: Michael Qiu <fallwind@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: gdb stub implement questions
Date: Mon, 01 Sep 2008 04:11:00 -0000 [thread overview]
Message-ID: <20080901041050.GA7137@caradoc.them.org> (raw)
In-Reply-To: <f74f98340808312102w7f1c9708i50ac02fa5c631fc7@mail.gmail.com>
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
next prev parent reply other threads:[~2008-09-01 4:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-01 4:03 Michael Qiu
2008-09-01 4:11 ` Daniel Jacobowitz [this message]
2008-09-01 6:09 ` Michael Qiu
2008-09-01 6:32 ` Michael Qiu
2008-09-01 8:22 ` Wenbo Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080901041050.GA7137@caradoc.them.org \
--to=drow@false.org \
--cc=fallwind@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox