Skip to content

Commit 159646c

Browse files
authored
[LLDB] Add ifndef to platform linux (#141971)
Another iteration of fixes for #141670. Platform linux can be used by other platforms, so we need to supply the signal values if they're not defined. Values are from the [manpage](https://man7.org/linux/man-pages/man7/signal.7.html)
1 parent cb065a5 commit 159646c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@
3434
#define MAP_PRIVATE 2
3535
#define MAP_ANON 0x20
3636

37+
// For other platforms that use platform linux
38+
#ifndef SIGILL
39+
#define SIGILL 4
40+
#endif
41+
#ifndef SIGBUS
42+
#define SIGBUS 7
43+
#endif
44+
#ifndef SIGFPE
45+
#define SIGFPE 8
46+
#endif
47+
#ifndef SIGSEGV
48+
#define SIGSEGV 11
49+
#endif
50+
3751
using namespace lldb;
3852
using namespace lldb_private;
3953
using namespace lldb_private::platform_linux;

0 commit comments

Comments
 (0)