On Mon, Jul 7, 2008 at 1:53 PM, Duane Ellis <[EMAIL PROTECTED]> wrote:
> Øyvind> Once there are some polymorph proc's defined, I'd like to update the
> Zylin
> Øyvind> Embedded CDT to support them. This will allow showing and even
> modifying
> Øyvind> peripherals from a GDB GUI frontend.
>
> duane> This should use the interface Charles is creating.
>
> Øyvind> I don't want to set up anything else but the GDB connection, more
> hazzle
> Øyvind> for the user, so I'd like to do any communication using the GDB
> Øyvind> monitor command.
>
> Øyvind> Would that be a problem?
>
> Yes, and no.
>
> First - the "MON" command is the same as TELNET - you just do not have to
> prefix your commands with mon. Basically what I proposed in my earlier
> email in response to Charles - is a programmatic machine interface to the
> "telnet prompt" that simplifies parsing.
My thinking is that some tcl commands return tcl output. Tcl commands
in via monitor commands and tcl input back.
The GDB "mon" is just the channel/transport.
The response from such commands must encode success/failure,
exception text and result if any.
Perhaps a prefix command a la
monitor openocd_tcl {xxxx}
=>
here the result encodes:
- exceptions(if any)
- resultant text
- resultant human readable text
all in easily parsable form(for Tcl anyway :-).
The above "opencd_tcl" command would work with any of
the supporte transports(Tcl connection, gdb mon or telnet).
--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development