EdikGres
EdikGres

Reputation: 1

How to skip BKPT instruction in GDB on ARM?

i use __asm__ __volatile__ ("bkpt #0"); in code. GDB stop with signal SIGTRAP. Ok, but i want the code to run further.

in GDB i use 'continue', 'skip', but i still stay on the same instruction. How to skip programm bkpt in GDB?

Upvotes: 0

Views: 404

Answers (1)

0___________
0___________

Reputation: 67721

You need to do step in GDB.

If you use Eclipse use F6 (step over).

Works both with openOCD, seggerGDBserver and stm32 gdb server.

Breakpoint instruction: enter image description here


Step over, but step in works as well

enter image description here


enter image description here

Upvotes: 1

Related Questions