Dual processor simultaneous debug setup?
This sounds neither an SW4STM32 question nor OpenOCD debug question.
First the question is, how did you configure the SPI on tow side? One is Master and other is Slave? In that case,
the Master drive the SPI’s clock, so you should pause the microcontroller on Master side first and then the Slave site.