OLD | NEW |
1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 size_t lower_index_; | 412 size_t lower_index_; |
413 size_t upper_index_; | 413 size_t upper_index_; |
414 | 414 |
415 // The shadow cursor. | 415 // The shadow cursor. |
416 const uint8_t* shadow_cursor_; | 416 const uint8_t* shadow_cursor_; |
417 | 417 |
418 DISALLOW_COPY_AND_ASSIGN(ShadowWalker); | 418 DISALLOW_COPY_AND_ASSIGN(ShadowWalker); |
419 }; | 419 }; |
420 | 420 |
421 // The static shadow memory that is referred to by the memory interceptors. | 421 // The static shadow memory that is referred to by the memory interceptors. |
422 // These are provided by one of 'dummy_shadow.cc' or 'static_shadow.cc'. | |
423 extern "C" { | 422 extern "C" { |
424 extern const size_t asan_memory_interceptors_shadow_memory_size; | |
425 extern uint8_t asan_memory_interceptors_shadow_memory[]; | 423 extern uint8_t asan_memory_interceptors_shadow_memory[]; |
426 } | 424 } |
427 | 425 |
428 // Bring in the implementation of the templated functions. | 426 // Bring in the implementation of the templated functions. |
429 #include "syzygy/agent/asan/shadow_impl.h" | 427 #include "syzygy/agent/asan/shadow_impl.h" |
430 | 428 |
431 } // namespace asan | 429 } // namespace asan |
432 } // namespace agent | 430 } // namespace agent |
433 | 431 |
434 #endif // SYZYGY_AGENT_ASAN_SHADOW_H_ | 432 #endif // SYZYGY_AGENT_ASAN_SHADOW_H_ |
OLD | NEW |