On Fri, Feb 18, 2011 at 8:12 AM, Mathias K. <[email protected]> wrote:
> Okay, i have found the issue. If i use the monitor command from gdb i receive 
> the string "qqset
> memspace 0", with an extra "q" in the prefix. This will call the tcl function 
> qset, the first q is
> removed. But the software sends only "qset memspace 0", the tcl command is 
> then "set memspace 0" and
> the command "set" is called.

Where does the extra 'q' come from?

> Is there any way to access the value "memspace" from c ?

Yes, implement the tcl command in C.

See src/target/target.c


        {
                .name = "array2mem",
                .mode = COMMAND_EXEC,
                .jim_handler = jim_target_array2mem,
                .help = "Writes Tcl array of 8/16/32 bit numbers "
                        "to target memory",
                .usage = "arrayname bitwidth address count",
        },



-- 
Øyvind Harboe

Can Zylin Consulting help on your project?

US toll free 1-866-980-3434 / International +47 51 87 40 27

http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to