OLD | NEW |
1 // Copyright (c) 2005, Google Inc. | 1 // Copyright (c) 2005, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 GetStackFramesWithContext(void **result, int *sizes, int max_depth, \ | 92 GetStackFramesWithContext(void **result, int *sizes, int max_depth, \ |
93 int skip_count, const void *ucp) | 93 int skip_count, const void *ucp) |
94 #include STACKTRACE_INL_HEADER | 94 #include STACKTRACE_INL_HEADER |
95 #undef IS_STACK_FRAMES | 95 #undef IS_STACK_FRAMES |
96 #undef IS_WITH_CONTEXT | 96 #undef IS_WITH_CONTEXT |
97 #undef GET_STACK_TRACE_OR_FRAMES | 97 #undef GET_STACK_TRACE_OR_FRAMES |
98 | 98 |
99 #elif 0 | 99 #elif 0 |
100 // This is for the benefit of code analysis tools that may have | 100 // This is for the benefit of code analysis tools that may have |
101 // trouble with the computed #include above. | 101 // trouble with the computed #include above. |
102 # include "base/stacktrace_x86-inl.h" | 102 # include "stacktrace_x86-inl.h" |
103 # include "base/stacktrace_libunwind-inl.h" | 103 # include "stacktrace_libunwind-inl.h" |
104 # include "base/stacktrace_generic-inl.h" | 104 # include "stacktrace_generic-inl.h" |
105 # include "base/stacktrace_powerpc-inl.h" | 105 # include "stacktrace_powerpc-inl.h" |
106 # include "base/stacktrace_win32-inl.h" | 106 # include "stacktrace_nacl-inl.h" |
| 107 # include "stacktrace_win32-inl.h" |
107 #else | 108 #else |
108 # error Cannot calculate stack trace: will need to write for your environment | 109 # error Cannot calculate stack trace: will need to write for your environment |
109 #endif | 110 #endif |
OLD | NEW |