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.
Is there any way to access the value "memspace" from c ?
Regards,
Mathias
Am 17.02.2011 20:00, schrieb Mathias K.:
> Looks like the tcl function is not called:
>
> Debug: 355 26143 gdb_server.c:2183 gdb_input_inner(): received packet:
> 'qRcmd,736574206d656d73706163652030'
> parameter for command_run_line() -> "qset memspace 0"
> User : 356 26147 command.c:707 command_run_line(): 0
> Debug: 357 26147 gdb_server.c:388 gdb_put_packet_inner(): sending packet
> '$O30#b2'
>
>
> Am 17.02.2011 19:48, schrieb Øyvind Harboe:
>> Not quite sure what you're asking....
>>
>> Add qset to your config?
>>
>> # handle qset...
>> proc qset {a b} {
>> # Do stuff here...
>> }
>>
>> # Invoke tcl 'qset' proc
>> monitor qset foo bar
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development