Debugging issue: `ecs->event_thread->control.trap_expected' failed

Hi Sir/Madam,

I am using Mbed Studio 1.4.1 with mbed-os 6.11 on Windows 10.

When I loaded my program, I got:

[New Thread 536948328]

[New Thread 536948192]

[New Thread 536948260]

[Switching to Thread 536948328]

Thread 2 “main” hit Breakpoint 1, 0x0808f60e in main ()

[New Thread 2]

…/src/gdb/gdb/infrun.c:5565: internal-error: int finish_step_over(execution_control_state*): Assertion `ecs->event_thread->control.trap_expected’ failed.

A problem internal to GDB has been detected,

further debugging may prove unreliable.

Quit this debugging session?

(y or n) [answered Y; input not from terminal]

This is a bug, please report it.

For instructions, see:

.

Any idea or fixes for this problem?

Thanks a lot,
Shoujie

Micro controller: STM32F746IGT6