How to see communication between GDB and openocd

Hi,

I’ve got a problem with GDB and a cortex-M4, GDB show me correct registers except for xPSR that is always 0 even if openocd tell me another value.

I would like to monitor communications between GDB and OpenOCD, but even if I launch openocd with -d in order to get it verbose, I only catch half communication, in fact from GDB to openOCD, and not the answers. Exemple:

Debug: 383 71250 gdb_server.c:822 gdb_new_connection(): New GDB Connection: 1, Target stm32f4x.cpu, state: halted

Debug: 384 71250 gdb_server.c:2046 gdb_input_inner(): received packet: ‘qSupported:qRelocInsn+’

Debug: 385 71251 gdb_server.c:2046 gdb_input_inner(): received packet: ‘QStartNoAckMode’

Warn : 386 71251 gdb_server.c:606 gdb_get_packet_inner(): acknowledgment received, but no packet pending

Debug: 387 71251 gdb_server.c:2046 gdb_input_inner(): received packet: ‘Hg0’

Debug: 388 71252 gdb_server.c:2046 gdb_input_inner(): received packet: ‘?’

Debug: 389 71252 gdb_server.c:2046 gdb_input_inner(): received packet: ‘Hc-1’

Debug: 390 71252 gdb_server.c:2046 gdb_input_inner(): received packet: ‘qC’

Debug: 391 71253 gdb_server.c:2046 gdb_input_inner(): received packet: ‘qAttached’

Debug: 392 71253 gdb_server.c:2046 gdb_input_inner(): received packet: ‘g’

Debug: 393 71254 gdb_server.c:2046 gdb_input_inner(): received packet: ‘qXfer:memory-map:read::0,fff’

Debug: 394 71255 gdb_server.c:2046 gdb_input_inner(): received packet: ‘m80000ec,4’

Debug: 395 71255 gdb_server.c:1197 gdb_read_memory_packet(): addr: 0x080000ec, len: 0x00000004

Debug: 396 71255 target.c:1760 target_read_buffer(): reading buffer of 4 byte at 0x080000ec

Debug: 397 71255 stm32_stlink.c:632 stm32_stlink_read_memory(): stm32_stlink_read_memory 80000ec 4 1

Debug: 398 71263 gdb_server.c:2046 gdb_input_inner(): received packet: ‘qTStatus’

Normally after ‘g’ packet comes the registers values from opeOCD to GDB : I would like to see them in order to catch where is the pb.

Thanks