Re: [rfc/rfa] [4/4] SPU enhancements: GDB/MI extensions

Daniel Jacobowitz
2007-06-04T20:22:55Z

On Mon, Jun 04, 2007 at 10:13:03PM +0200, Ulrich Weigand wrote:
> That might be a good idea in general, but in this particular case,
> preparing the data requires quite a bit of effort and knowledge of
> the data format. I'm not sure I'd want to describe the effects of,
> say, info_spu_dma_cmdlist in XML. I also want to avoid having to
> duplicate that processing in GDB and the IDE ...

Right, but I didn't mean something quite that ambitious. What does
the IDE end up doing with the output of these commands, and does it
want to parse them or just display them as text?

I have a half-finished sketch of a register groups interface that lets
GDB present arbitrary control structures from the target as
"registers" to the front end. There will be a generic MI command to
get groups of these things and the individual members will show up
through -var-list-children as varobjs. But that may not be suitable.

Another option would be something like this, if the output of the MI
commands is general enough. Excuse my MI syntax if it's completely
wrong, please.

-> -arch-info-list
<- ^done,infos=["spu dma", "spu signals"]
-> -arch-info "spu dma"
<- ^done,[whatever]

--
Daniel Jacobowitz
CodeSourcery