user277465
user277465

Reputation:

Hardware breakpoints on ARM

How do hardware breakpoints work on ARM processors? I can see that on x86 and x64 there are 6 DEBUG registers, DR0 throught DR7. Can someone point me to resources similar to this but for ARM?

Upvotes: 1

Views: 4467

Answers (1)

Arun Valiaparambil
Arun Valiaparambil

Reputation: 545

ARM architectures support both Hardware and Software breakpoints. In Cortex A7 (an ARM v7a implementation from ARM) six hardware breakpoints are available. Checkout section: 10.2.2 (Breakpoints and Watchpoints) of the Cortext A7 TRM

When you run out of hardware breakpoints, there is a BKPT instruction which the debugger inserts to halt execution.

You will have to refer to the Technical Reference Manual (TRM) of the particular chip you are looking at for the exact number of hardware breakpoints.

Upvotes: 3

Related Questions