Re: Working with OpenOCD using Telnet

2022-12-02 Thread Tim Newsome
I agree that step should work regardless of which SMP target the software breakpoint was set on. Unfortunately there is no clean abstraction inside OpenOCD for SMP groups, so it's just hacked into various places. Specifically, there's a bunch of SMP-specific code inside gdb_server.c. I think this l

Re: Working with OpenOCD using Telnet

2022-12-02 Thread Tommy Murphy
> - I was sure that it is upstream OpenOCD mailing list Sorry. My mistake. You're correct. I'm usually on the RISC-V lists so thought that I was still there! :⁠-⁠D

Re: Working with OpenOCD using Telnet

2022-12-02 Thread Kirill Radkin
If I understand you correctly, only gdb shoudl have awareness about OpenOCD SMP support, but current implementation of some targets (for example RISCV) which is common code  for telnet and gdb is aware about OpenOCD SMP support, for example riscv_resume() and riscv_halt() from src/target/riscv/

Re: Working with OpenOCD using Telnet

2022-12-02 Thread Tommy Murphy
Apropos of a question/comment from you about this yesterday I was having a root around and got the impression that the telnet interface may have no awareness of the OpenOCD SMP support. Only gdb does. I'm still not sure but it would seem to tally with what you're seeing? Might be worth asking on