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 #include <errno.h> | 5 #include <errno.h> |
6 #include <fcntl.h> | 6 #include <fcntl.h> |
7 #include <iostream> | |
8 #include <linux/unistd.h> | 7 #include <linux/unistd.h> |
9 #include <signal.h> | 8 #include <signal.h> |
10 #include <stdarg.h> | 9 #include <stdarg.h> |
11 #include <stdlib.h> | 10 #include <stdlib.h> |
12 #include <sys/ptrace.h> | 11 #include <sys/ptrace.h> |
13 #include <sys/types.h> | 12 #include <sys/types.h> |
14 #include <sys/wait.h> | 13 #include <sys/wait.h> |
15 | 14 |
16 #include "library.h" | 15 #include "library.h" |
17 #include "maps.h" | 16 #include "maps.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 break; | 258 break; |
260 } | 259 } |
261 } | 260 } |
262 } while (len || long_line); | 261 } while (len || long_line); |
263 new_addr = NULL; | 262 new_addr = NULL; |
264 done: | 263 done: |
265 return reinterpret_cast<char*>(new_addr); | 264 return reinterpret_cast<char*>(new_addr); |
266 } | 265 } |
267 | 266 |
268 } // namespace | 267 } // namespace |
OLD | NEW |