llvm-project/lldb/source
Todd Fiala dda6194399 lldb - problem with some PTRACE_* constants in NativeProcessLinux.cpp file
See http://reviews.llvm.org/D4366 for details.

Change by Paul Paul Osmialowski

Today this is the only problem that I'm facing trying to cross-compile lldb for AArch64 using Linaro's toolchain.

PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS are not defined for AArch64
These things can be defined different ways for other architectures, e.g. for x86_64 Linux, asm/ptrace-abi.h defines them as preprocessor constants while sys/ptrace.h defines them in enum along with corresponding PT_* preprocessor constants
NativeProcessLinux.cpp includes sys/ptrace.h
To avoid accidental redefinition of enums with preprocessor constants, I'm proposing this patch which first checks for PT_* preprocessor constants then checks for PTRACE_* constants then when it still can not find them, it defines preprocessor constants.
Similar approach was already used for PTRACE_GETREGSET and PTRACE_SETREGSET constants; in this case however it was easier, since enum values in sys/ptrace.h and preprocessor constants shared all exactly the same names (e.g. there's no additional PT_GETREGSET name defined).

llvm-svn: 212225
2014-07-02 21:34:04 +00:00
..
API If a breakpoint gets deleted, any SBBreakpoints representing that 2014-07-02 18:44:43 +00:00
Breakpoint Fix typos. 2014-07-01 21:22:11 +00:00
Commands Fix typos. 2014-07-01 21:22:11 +00:00
Core Add host layer support for pipes. 2014-07-02 21:10:39 +00:00
DataFormatters lldb: remove adhoc implementation of array_sizeof 2014-06-27 05:17:41 +00:00
Expression Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
Host Add host layer support for pipes. 2014-07-02 21:10:39 +00:00
Interpreter Add host layer support for pipes. 2014-07-02 21:10:39 +00:00
Plugins lldb - problem with some PTRACE_* constants in NativeProcessLinux.cpp file 2014-07-02 21:34:04 +00:00
Symbol Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
Target Add host layer support for pipes. 2014-07-02 21:10:39 +00:00
Utility Fix typos. 2014-07-01 21:22:11 +00:00
CMakeLists.txt This creates a valid Python API for Windows, pending some issues. The changes included are - 2014-07-01 17:57:19 +00:00
Makefile Make lldb build with Makefiles on OS X. 2014-01-18 08:05:32 +00:00
lldb-log.cpp Fix typos. 2014-07-01 21:22:11 +00:00
lldb.cpp sanitise sign comparisons 2014-04-02 03:51:35 +00:00