Skip to content

Commit

Permalink
Expand RE_BREAKPOINT macro on ARM64 (works at least on MacOS/clang)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsimmisch committed Sep 24, 2023
1 parent 863fb69 commit 9b07028
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/re_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ typedef SSIZE_T ssize_t;
/** Defines a soft breakpoint */
#if (defined(__i386__) || defined(__x86_64__))
#define RE_BREAKPOINT __asm__("int $0x03")
#elif defined(__aarch64__)
#define RE_BREAKPOINT __builtin_debugtrap()
#else
#define RE_BREAKPOINT
#endif
Expand Down

0 comments on commit 9b07028

Please sign in to comment.