Foxyloxy has quit [Read error: Connection reset by peer]
Xogium has quit [Ping timeout: 260 seconds]
Xogium has joined #openocd
nerozero has joined #openocd
_whitelogger has joined #openocd
Haohmaru has joined #openocd
Foxyloxy has joined #openocd
ariss has joined #openocd
<ariss>
Hi PaulFertser thanks for all the answers. I am not able to connect to gdb from another client while my debugger is attached to it. I am doing this in order to have auxiliarry debugging scripts in python i.e when an exception occurs I can read all related registers and trace logs i keep in memory kind of a core dump, or another usage I have is to
<ariss>
drive some tests by writing to/reading from a control structure at a known address. What I see in the documentation of load_image command is that it requires a filename as an argument, can you please point me to an example of how to use it with a tcl array? Thanks again for your answers :)
Hammdist31 has joined #openocd
<PaulFertser>
ariss: hi!
<PaulFertser>
ariss: I understand that only one GDB connection is possible but my point is that you can do plenty of useful Python scripting from within GDB itself.
<PaulFertser>
ariss: you can use "write_memory" command to write from Tcl array to target memory.
<ariss>
PaulFertser I will look into the write_memory command! thanks for the reply. zapb_ I put together my own library sendind openocd commands over telnet. I ll try to move to the tcp/tcl interface it looks more capable and it seems to do all I am already doing and wrapping the write_memory tcl command. Thanks eveyone! :)
<PaulFertser>
ariss: it's not more capable really, just more automation-friendly.
<PaulFertser>
ariss: Telnet just has additional processing for command history and editing.
<PaulFertser>
But it's all the same essentially, just with the RPC API you get consistent framing for requests and replies. The commands are still sent and processed by the same Tcl interpreter.
Hammdist31 has quit [Quit: Client closed]
PaulFertser has quit [Ping timeout: 276 seconds]
ariss has quit [Quit: Client closed]
Haohmaru has quit [Quit: saionara]
Hammdist58 has joined #openocd
PaulFertser has joined #openocd
lucascastro has joined #openocd
Hammdist58 has quit [Quit: Client closed]
Hammdist85 has joined #openocd
Hammdist85 has quit [Quit: Client closed]
<karlp>
gdb python scripts are super powerful, but terribly under documented.