[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [Openocd-development] Telnet server function keys and ARM
From:       oyvind.harboe () zylin ! com (=?ISO-8859-1?Q?=D8yvind_Harboe?=)
Date:       2008-07-30 6:07:05
Message-ID: c09652430807292307m102c248ane2e486665ab20977 () mail ! gmail ! com
[Download RAW message or body]

Did anyone try this?

Some comments on implementation and regards to how to make
it more generic.

1. I'd like to see it adapted a bit to scripting, to make it easier to
use. This will allow the function keys to be defined in the target
configuration scripts without adding one file per key.

Change:

                        retval = command_run_line(command_context,
"script f4.script");

To:

                        retval = command_run_linef(command_context,
"key_%s", fn_key);

- You can then write a single file w/all your scripts. To handle keys:

proc key_f1 {} {
        reset init
}

2. We can put the debugger script into the openocd/src/tcl directory.

3. Document it in openocd.texi. Add some convention about which
function keys that are reserved for the target configuration script
specific operations and which are reserved for e.g. this telnet
debugger.



-- 
?yvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic