aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/dump_writer_common/seccomp_unwinder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/linux/dump_writer_common/seccomp_unwinder.cc')
-rw-r--r--src/client/linux/dump_writer_common/seccomp_unwinder.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/linux/dump_writer_common/seccomp_unwinder.cc b/src/client/linux/dump_writer_common/seccomp_unwinder.cc
index 241bf1b0..e9d1ec78 100644
--- a/src/client/linux/dump_writer_common/seccomp_unwinder.cc
+++ b/src/client/linux/dump_writer_common/seccomp_unwinder.cc
@@ -74,14 +74,14 @@ void SeccompUnwinder::PopSeccompStackFrame(RawContextCPU* cpu,
uint64_t ret;
/* char redzone[128]; */
} seccomp_stackframe;
- if (top - offsetof(typeof(seccomp_stackframe), deadbeef) < old_top ||
- top - offsetof(typeof(seccomp_stackframe), deadbeef) +
+ if (top - offsetof(__typeof__(seccomp_stackframe), deadbeef) < old_top ||
+ top - offsetof(__typeof__(seccomp_stackframe), deadbeef) +
sizeof(seccomp_stackframe) >
thread.stack.start_of_memory_range+thread.stack.memory.data_size) {
break;
}
my_memcpy(&seccomp_stackframe,
- bp_addr - offsetof(typeof(seccomp_stackframe), deadbeef),
+ bp_addr - offsetof(__typeof__(seccomp_stackframe), deadbeef),
sizeof(seccomp_stackframe));
cpu->rbx = seccomp_stackframe.rbx;
cpu->rcx = seccomp_stackframe.rcx;
@@ -128,14 +128,14 @@ void SeccompUnwinder::PopSeccompStackFrame(RawContextCPU* cpu,
uint32_t fakeret;
uint32_t ret;
} seccomp_stackframe;
- if (top - offsetof(typeof(seccomp_stackframe), deadbeef) < old_top ||
- top - offsetof(typeof(seccomp_stackframe), deadbeef) +
+ if (top - offsetof(__typeof__(seccomp_stackframe), deadbeef) < old_top ||
+ top - offsetof(__typeof__(seccomp_stackframe), deadbeef) +
sizeof(seccomp_stackframe) >
thread.stack.start_of_memory_range+thread.stack.memory.data_size) {
break;
}
my_memcpy(&seccomp_stackframe,
- bp_addr - offsetof(typeof(seccomp_stackframe), deadbeef),
+ bp_addr - offsetof(__typeof__(seccomp_stackframe), deadbeef),
sizeof(seccomp_stackframe));
cpu->ebx = seccomp_stackframe.ebx;
cpu->ecx = seccomp_stackframe.ecx;