| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #define XOPEN_SOURCE 500 | 5 #define XOPEN_SOURCE 500 |
| 6 #include <algorithm> | 6 #include <algorithm> |
| 7 #include <elf.h> | 7 #include <elf.h> |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <errno.h> | 9 #include <errno.h> |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| 11 #include <iostream> | |
| 12 #include <linux/unistd.h> | 11 #include <linux/unistd.h> |
| 13 #include <set> | 12 #include <set> |
| 14 #include <signal.h> | 13 #include <signal.h> |
| 15 #include <stdarg.h> | 14 #include <stdarg.h> |
| 16 #include <stdio.h> | 15 #include <stdio.h> |
| 17 #include <stdlib.h> | 16 #include <stdlib.h> |
| 18 #include <sys/ptrace.h> | 17 #include <sys/ptrace.h> |
| 19 #include <sys/resource.h> | 18 #include <sys/resource.h> |
| 20 #include <sys/stat.h> | 19 #include <sys/stat.h> |
| 21 #include <sys/types.h> | 20 #include <sys/types.h> |
| (...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 } | 1199 } |
| 1201 iter = symbols_.find("__kernel_rt_sigreturn"); | 1200 iter = symbols_.find("__kernel_rt_sigreturn"); |
| 1202 if (iter != symbols_.end() && iter->second.st_value) { | 1201 if (iter != symbols_.end() && iter->second.st_value) { |
| 1203 __kernel_rt_sigreturn = asr_offset_ + iter->second.st_value; | 1202 __kernel_rt_sigreturn = asr_offset_ + iter->second.st_value; |
| 1204 } | 1203 } |
| 1205 | 1204 |
| 1206 return true; | 1205 return true; |
| 1207 } | 1206 } |
| 1208 | 1207 |
| 1209 } // namespace | 1208 } // namespace |
| OLD | NEW |