Skip to content

Commit

Permalink
Fix PlatformBreak on MacOS GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
muit committed Oct 17, 2024
1 parent 580a99c commit ae7f281
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Include/Pipe/Core/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@


// Platform break includes
#if defined(__i386__) || defined(__x86_64__)
#ifdef _MSC_VER
#elif defined(__i386__) || defined(__x86_64__)
#elif defined(__thumb__)
#elif defined(__arm__) && !defined(__thumb__)
#elif defined(__aarch64__) && defined(__APPLE__)
#elif defined(__aarch64__) && defined(__clang__)
#elif defined(__aarch64__)
#elif defined(__powerpc__)
#elif defined(__riscv)
Expand Down Expand Up @@ -139,15 +140,17 @@ namespace p
{
__attribute__((always_inline)) __inline__ static void PlatformBreak()

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

missing type specifier - int assumed. Note: C++ does not support default-int

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

'always_inline': undeclared identifier

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

syntax error: missing ';' before identifier '__inline__'

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

missing type specifier - int assumed. Note: C++ does not support default-int

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

'always_inline': undeclared identifier

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

syntax error: missing ';' before identifier '__inline__'

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

missing type specifier - int assumed. Note: C++ does not support default-int

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

'always_inline': undeclared identifier

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

syntax error: missing ';' before identifier '__inline__'

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

missing type specifier - int assumed. Note: C++ does not support default-int

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

'always_inline': undeclared identifier

Check failure on line 141 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

syntax error: missing ';' before identifier '__inline__'
{

Check failure on line 142 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

syntax error: missing ';' before '{'

Check failure on line 142 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

'{': missing function header (old-style formal list?)

Check failure on line 142 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

syntax error: missing ';' before '{'

Check failure on line 142 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Debug)

'{': missing function header (old-style formal list?)

Check failure on line 142 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

syntax error: missing ';' before '{'

Check failure on line 142 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

'{': missing function header (old-style formal list?)

Check failure on line 142 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

syntax error: missing ';' before '{'

Check failure on line 142 in Include/Pipe/Core/Platform.h

View workflow job for this annotation

GitHub Actions / windows-2022 (msvc, Release)

'{': missing function header (old-style formal list?)
#if defined(__i386__) || defined(__x86_64__)
#ifdef _MSC_VER // MSVC
__debugbreak();
#elif defined(__i386__) || defined(__x86_64__)
__asm__ volatile("int $0x03");
#elif defined(__thumb__)
// See 'arm-linux-tdep.c' in GDB source, 'eabi_linux_thumb_le_breakpoint'
__asm__ volatile(".inst 0xde01");
#elif defined(__arm__) && !defined(__thumb__)
// See 'arm-linux-tdep.c' in GDB source, 'eabi_linux_arm_le_breakpoint'
__asm__ volatile(".inst 0xe7f001f0");
#elif defined(__aarch64__) && defined(__APPLE__)
#elif defined(__aarch64__) && defined(__clang__)
__builtin_debugtrap();
#elif defined(__aarch64__)
// See 'aarch64-tdep.c' in GDB source, 'aarch64_default_breakpoint'
Expand Down

0 comments on commit ae7f281

Please sign in to comment.