Equivalent of 0xCC for Windows ARM

I have a small command line application named "debugger" which acts as a debugger for a process A. Now this application works fine with x86 and x64. Now I have to migrate this "debugger" to ARM64 architecture. What this debugger very briefly does is attach breakpoints aka writes instruction int3(0xcc) to the start of functions it finds in the map file of the Process A. Now whenever I try to run my application via this "debugger" app I am able to set breakpoints but the app continuously gets "access_violation". My hunch is that for ARM64 architecture the instruction "0xcc" which I am writing to the start of the functions is causing the access_violation. Now I have two questions:

  1. Is "0xcc" valid instruction for putting breakpoint in ARM?
  2. Can writing "0xcc" in ARM cause access_violation?

Please provide links for your answers as well.

Source: Windows Questions C++

LEAVE A COMMENT