register value different between openocd and gdb

Hello,

when I do

“monitor reg” and “info reg”, register value are different. I don’t know which one is the correct value. is there a way to force gdb to refresh value of these registers ?

also, if I do “monitor reset halt” under gdb in the middle of a software is running, gdb pc is still at the value when I interrupted the software.

thanks for your help