Commit 3fb7ce4f authored by Xiao Shi's avatar Xiao Shi Committed by Facebook GitHub Bot

fix assembly interrupt instruction for ARM/AARCH

Summary:
As title

https://gcc.godbolt.org/z/58Mqb6

Reviewed By: Orvid

Differential Revision: D26012680

fbshipit-source-id: 7c8859fec4a5f3a58b05e4ff7924273bd05891ec
parent bf66d627
......@@ -28,7 +28,10 @@ namespace folly {
FOLLY_ALWAYS_INLINE void asm_gdb_breakpoint() {
#ifdef _MSC_VER
__debugbreak();
#elif FOLLY_ARM || FOLLY_AARCH64
__asm__ volatile("svc 3");
#else
// powerpc64, x86, ...
__asm__ volatile("int $3");
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment