Am 18.02.2011 08:19, schrieb Øyvind Harboe:
> 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?

This comes from gdb and is the command "general query".

> 
>> Is there any way to access the value "memspace" from c ?
> 
> Yes, implement the tcl command in C.

I think the "set" command is a general tcl command and i can't overwrite it!?

On a telnet connection i can print the memspace variable with:

> echo $memspace
3

Now i need to access this variable from c.



Regards,

Mathias
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to