diff options
Diffstat (limited to 'include/lldb')
-rw-r--r-- | include/lldb/Host/android/Android.h | 3 | ||||
-rw-r--r-- | include/lldb/Host/linux/Ptrace.h | 27 | ||||
-rw-r--r-- | include/lldb/Target/RegisterContext.h | 5 | ||||
-rw-r--r-- | include/lldb/lldb-private-types.h | 4 |
4 files changed, 18 insertions, 21 deletions
diff --git a/include/lldb/Host/android/Android.h b/include/lldb/Host/android/Android.h index 8efc1a53b01f..08e7dd93b285 100644 --- a/include/lldb/Host/android/Android.h +++ b/include/lldb/Host/android/Android.h @@ -14,9 +14,6 @@ #include <string> #include <errno.h> -#define _isatty isatty -#define SYS_tgkill __NR_tgkill - namespace std { template <typename T> diff --git a/include/lldb/Host/linux/Ptrace.h b/include/lldb/Host/linux/Ptrace.h index b28bb37715d6..731e435da0db 100644 --- a/include/lldb/Host/linux/Ptrace.h +++ b/include/lldb/Host/linux/Ptrace.h @@ -14,33 +14,24 @@ #include <sys/ptrace.h> -#ifdef __ANDROID_NDK__ -#define PT_DETACH PTRACE_DETACH +#ifndef __GLIBC__ typedef int __ptrace_request; #endif #define DEBUG_PTRACE_MAXBYTES 20 // Support ptrace extensions even when compiled without required kernel support -#ifndef PT_GETREGS - #ifndef PTRACE_GETREGS - #define PTRACE_GETREGS 12 - #endif +#ifndef PTRACE_GETREGS + #define PTRACE_GETREGS 12 #endif -#ifndef PT_SETREGS - #ifndef PTRACE_SETREGS - #define PTRACE_SETREGS 13 - #endif +#ifndef PTRACE_SETREGS + #define PTRACE_SETREGS 13 #endif -#ifndef PT_GETFPREGS - #ifndef PTRACE_GETFPREGS - #define PTRACE_GETFPREGS 14 - #endif +#ifndef PTRACE_GETFPREGS + #define PTRACE_GETFPREGS 14 #endif -#ifndef PT_SETFPREGS - #ifndef PTRACE_SETFPREGS - #define PTRACE_SETFPREGS 15 - #endif +#ifndef PTRACE_SETFPREGS + #define PTRACE_SETFPREGS 15 #endif #ifndef PTRACE_GETREGSET #define PTRACE_GETREGSET 0x4204 diff --git a/include/lldb/Target/RegisterContext.h b/include/lldb/Target/RegisterContext.h index 037c27adaf10..dfeb18348bf7 100644 --- a/include/lldb/Target/RegisterContext.h +++ b/include/lldb/Target/RegisterContext.h @@ -46,6 +46,11 @@ public: virtual const RegisterInfo * GetRegisterInfoAtIndex (size_t reg) = 0; + // Detect the register size dynamically. + uint32_t + UpdateDynamicRegisterSize (const lldb_private::ArchSpec &arch, + RegisterInfo* reg_info); + virtual size_t GetRegisterSetCount () = 0; diff --git a/include/lldb/lldb-private-types.h b/include/lldb/lldb-private-types.h index bdcf532b4305..f5d986e2e993 100644 --- a/include/lldb/lldb-private-types.h +++ b/include/lldb/lldb-private-types.h @@ -54,6 +54,10 @@ namespace lldb_private // null, all registers in this list will be invalidated when the value of this // register changes. For example, the invalidate list for eax would be rax // ax, ah, and al. + const uint8_t *dynamic_size_dwarf_expr_bytes; // A DWARF expression that when evaluated gives + // the byte size of this register. + size_t dynamic_size_dwarf_len; // The length of the DWARF expression in bytes + // in the dynamic_size_dwarf_expr_bytes member. }; //---------------------------------------------------------------------- |