gdb stub implement questions

Daniel Jacobowitz drow@false.org
Mon Sep 1 04:11:00 GMT 2008


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



More information about the Gdb mailing list